learn-symfony /
css-compiler
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 EM\CssCompiler\Handler; |
||
| 4 | |||
| 5 | use Composer\EventDispatcher\Event; |
||
| 6 | use EM\CssCompiler\ScriptHandler as Handler; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @deprecated |
||
| 10 | */ |
||
| 11 | class ScriptHandler extends Handler |
||
| 12 | { |
||
| 13 | public static function compileCSS(Event $event) |
||
| 14 | { |
||
| 15 | static::generateCSS($event); |
||
|
0 ignored issues
–
show
|
|||
| 16 | } |
||
| 17 | } |
||
| 18 |
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.