| 1 | <?php |
||
| 21 | class MapHelper extends AbstractHelper |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function render(Map $map) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function renderHtml(Map $map) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function renderStylesheet(Map $map) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function renderJavascript(Map $map) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param string $eventName |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | private function doRender(Map $map, $eventName) |
||
| 66 | } |
||
| 67 |
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: