| 1 | <?php |
||
| 21 | class PlaceAutocompleteHelper extends AbstractHelper |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function render(Autocomplete $autocomplete) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function renderHtml(Autocomplete $autocomplete) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function renderJavascript(Autocomplete $autocomplete) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $eventName |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | private function doRender(Autocomplete $autocomplete, $eventName) |
||
| 58 | } |
||
| 59 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: