| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | final class ImportSchemeCollectionProvider implements ProviderInterface |
||
| 18 | { |
||
| 19 | /** @param ImportApp[] $importAppConfig */ |
||
| 20 | #[Named('importAppConfig=BEAR\Resource\Annotation\ImportAppConfig,schemeCollection=original')] |
||
| 21 | public function __construct( |
||
| 22 | #[Named(ImportAppConfig::class)] |
||
| 23 | private array $importAppConfig, |
||
| 24 | #[Named('original')] |
||
| 25 | private SchemeCollectionInterface $schemeCollection, |
||
| 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: