1 | <?php |
||
15 | class PaginateProcessor extends AbstractPaginateProcessor |
||
16 | { |
||
17 | /** |
||
18 | * Applies operation to data source and returns modified data source. |
||
19 | * |
||
20 | * @param QueryBuilder $src |
||
21 | * @param OperationInterface|PaginateOperation $operation |
||
22 | * @return QueryBuilder |
||
23 | */ |
||
24 | public function process($src, OperationInterface $operation) |
||
30 | } |
||
31 |
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.