clubdeuce /
wplib-olm-google-maps
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Clubdeuce\WPLib\Components\GoogleMaps; |
||
| 4 | |||
| 5 | /** |
||
| 6 | * Class Map_View |
||
| 7 | * @package Clubdeuce\GoogleMaps |
||
| 8 | * @property Map $item |
||
| 9 | * @method Map_Model $model() |
||
| 10 | */ |
||
| 11 | class Map_View extends \WPLib_View_Base { |
||
| 12 | |||
| 13 | function the_map() { |
||
| 14 | |||
| 15 | $view = new \Clubdeuce\WPGoogleMaps\Map_View( $this->model() ); |
||
|
0 ignored issues
–
show
|
|||
| 16 | |||
| 17 | $view->the_map(); |
||
| 18 | |||
| 19 | } |
||
| 20 | |||
| 21 | } |
||
| 22 |
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: