| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function get(): ProviderProvider |
||
| 22 | { |
||
| 23 | $param = $this->ip->getParameter(); |
||
| 24 | $setAttribute = $param->getAttributes(Set::class); |
||
| 25 | if (! isset($setAttribute[0])) { |
||
| 26 | throw new SetNotFound((string) $this->ip->getParameter()); |
||
| 27 | } |
||
| 28 | |||
| 29 | $set = $setAttribute[0]->newInstance(); |
||
| 30 | |||
| 31 | return new ProviderProvider($this->injector, $set); |
||
|
|
|||
| 32 | } |
||
| 34 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: