Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | final class ImportSchemeCollectionProvider implements ProviderInterface |
||
18 | { |
||
19 | /** @param ImportApp[] $importAppConfig */ |
||
20 | public function __construct( |
||
21 | #[AppName] |
||
22 | private readonly string $appName, |
||
23 | #[ImportAppConfig] |
||
24 | private readonly array $importAppConfig, |
||
25 | private readonly InjectorInterface $injector, |
||
26 | ) { |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritDoc} |
||
31 | */ |
||
32 | #[Override] |
||
44 | } |
||
45 | } |
||
46 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: