1 | <?php |
||
18 | class PolygonParser extends LineParser { |
||
19 | |||
20 | protected function constructShapeFromLatLongValues( array $locations ) { |
||
23 | |||
24 | protected function handleCommonParams( array &$params, Line &$line ) { |
||
28 | |||
29 | protected function handlePolygonParams( array &$params, Polygon &$polygon ) { |
||
42 | |||
43 | } |
||
44 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.