This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
6
{
7
/**
8
* @var Specification[]
9
*/
10
private $specifications;
11
12
/**
13
* @param Specification[] ...$specifications
14
*/
15
1
public function __construct(Specification ...$specifications)
It seems like $specifications of type array<integer,array<inte...cation\Specification>>> is incompatible with the declared type array<integer,object<Tan...ication\Specification>> of property $specifications.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
18
1
}
19
20
/**
21
* {@inheritdoc}
22
*/
23
1
public function isSatisfiedBy($object): bool
24
{
25
1
foreach ($this->specifications as $specification) {
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.