| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function get() |
||
| 43 | { |
||
| 44 | $param = $this->ip->getParameter(); |
||
| 45 | /** @var ?Set<object> $set */ |
||
| 46 | $set = $this->reader->getParametrAnnotation($param, Set::class); // @phpstan-ignore-line |
||
| 47 | if ($set === null) { |
||
| 48 | throw new SetNotFound((string) $this->ip->getParameter()); |
||
| 49 | } |
||
| 50 | |||
| 51 | return new ProviderProvider($this->injector, $set); |
||
|
|
|||
| 52 | } |
||
| 54 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: