Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function get(): Map |
||
41 | { |
||
42 | /** @var ?Set $set */ |
||
43 | $set = $this->reader->getParametrAnnotation($this->ip->getParameter(), Set::class); |
||
44 | if ($set === null) { |
||
45 | throw new SetNotFound((string) $this->ip->getParameter()); |
||
46 | } |
||
47 | |||
48 | /** @var array<string, LazyTo<object>> $lazies */ |
||
49 | $lazies = $this->multiBindings[$set->interface]; |
||
50 | |||
51 | return new Map($lazies, $this->injector); |
||
|
|||
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: