1 | <?php |
||
21 | class UnarySorter extends DependedModificator implements SorterInterface |
||
22 | { |
||
23 | use SelectorValidationTrait; |
||
24 | |||
25 | /** |
||
26 | * Expression in a form or [column => direction, ...] |
||
27 | * |
||
28 | * @var array |
||
29 | */ |
||
30 | private $sortBy = []; |
||
31 | |||
32 | /** |
||
33 | * @param array $sortBy |
||
34 | * @param array|Dependency $dependencies |
||
35 | */ |
||
36 | public function __construct(array $sortBy, $dependencies = []) |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function apply($selector) |
||
64 | } |
||
65 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.