| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class AdapterProvider |
||
| 8 | { |
||
| 9 | /** @var ObjectStorageAdapter[] */ |
||
| 10 | private iterable $adapters; |
||
| 11 | private string $defaultAdapter; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param ObjectStorageAdapter[] $adapters |
||
| 15 | */ |
||
| 16 | 6 | public function __construct(iterable $adapters, string $defaultAdapter) |
|
| 20 | 6 | } |
|
| 21 | |||
| 22 | 6 | public function __invoke(?string $name = null): ObjectStorageAdapter |
|
| 34 |
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..