Conditions | 1 |
Paths | 1 |
Total Lines | 4 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
22 | 4 | public static function generate(\Reflector $property): string |
|
23 | { |
||
24 | 4 | return self::doGenerate($property); |
|
1 ignored issue
–
show
|
|||
25 | } |
||
26 | |||
45 |
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.