Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class FactoryRegistry |
||
9 | { |
||
10 | /** |
||
11 | * @var FactoryInterface[] |
||
12 | */ |
||
13 | private $factories; |
||
14 | |||
15 | /** |
||
16 | * @param FactoryInterface[]|iterable $factories |
||
17 | */ |
||
18 | 2 | public function __construct(iterable $factories) |
|
21 | 2 | } |
|
22 | |||
23 | /** |
||
24 | * @param SymfonyConstraint $constraint |
||
25 | * |
||
26 | * @return FactoryInterface |
||
27 | * @throws ConstraintException |
||
28 | */ |
||
29 | 2 | public function findForConstraint(SymfonyConstraint $constraint): FactoryInterface |
|
40 |
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..