| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class ImportSchemeCollectionProvider implements ProviderInterface |
||
| 17 | { |
||
| 18 | /** @param ImportApp[] $importAppConfig */ |
||
| 19 | #[Named('importAppConfig=BEAR\Resource\Annotation\ImportAppConfig,schemeCollection=original')] |
||
| 20 | public function __construct( |
||
| 21 | #[Named(ImportAppConfig::class)] |
||
| 22 | private array $importAppConfig, |
||
| 23 | #[Named('original')] |
||
| 24 | private SchemeCollectionInterface $schemeCollection, |
||
| 25 | ) { |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritDoc} |
||
| 30 | */ |
||
| 31 | public function get(): SchemeCollectionInterface |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: