Total Complexity | 11 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 89.47% |
Changes | 0 |
1 | <?php |
||
7 | final class StorageFactory implements StorageFactoryInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var StorageFactoryInterface[] |
||
11 | */ |
||
12 | private iterable $factories; |
||
13 | |||
14 | public function __construct(iterable $factories) |
||
17 | } |
||
18 | |||
19 | 2 | public function supports(string $dsn): bool |
|
28 | 1 | } |
|
29 | |||
30 | public function create(string $dsn): PromiseInterface |
||
41 | } |
||
42 | 1 | ||
43 | private function getFactories(): array |
||
59 |
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..