Skip to content

Commit 7ebef90

Browse files
committed
Fixed method name
1 parent e885b41 commit 7ebef90

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Changelog.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Changelog of Nekland Places API
2+
===============================
3+
4+
v1.1.0, 2015-04-XX:
5+
6+
* Serious compatibility break with the Search API. This is due to an error while naming this method. To avoid any problem with old PHP releases
7+
we need to rename this method, the new name is `searchLocation`.
8+
* Serious compatibility break with the Autocomplete API for same reasons.

docs/api_search.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Available methods
2020
```php
2121
<?php
2222

23-
array Search::search($location, $radius [, array $other = []])
23+
array Search::searchLocation($location, $radius [, array $other = []])
2424
```
2525

2626
* `location`: a location (latitude,longitude), i.e. `48.8588589,2.3470599,13`

src/Nekland/PlacesApi/Api/Search.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Search extends AbstractApi
2828
* @param array $other More parameters, see google documentation
2929
* @return array
3030
*/
31-
public function search($location, $radius, array $other = [])
31+
public function searchLocation($location, $radius, array $other = [])
3232
{
3333
$body = array_merge(
3434
['location' => $location, 'radius' => $radius],

0 commit comments

Comments
 (0)