It seems like $dependencies defined by parameter $dependencies on line 36 can also be of type array; however, Spiral\Listing\Prototype...ificator::__construct() does only seem to accept array<integer,object<Spi...ral\Listing\Dependency>, maybe add an additional type check?
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.
Loading history...
39
$this->sortBy = $sortBy;
40
}
41
42
/**
43
* {@inheritdoc}
44
*/
45
public function apply($selector)
46
{
47
$this->validateSelector($selector);
48
49
if ($selector instanceof RecordSelector) {
50
$selector = $this->loadDependencies($selector);
51
52
foreach ($this->sortBy as $expression => $direction) {
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.