Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
51 | return new class ($this->injector, $set) implements ProviderInterface |
||
|
|||
52 | { |
||
53 | /** @var InjectorInterface */ |
||
54 | private $injector; |
||
55 | |||
56 | /** @var Set<object> */ |
||
57 | private $set; |
||
58 | |||
59 | /** |
||
60 | * @param Set<object> $set |
||
61 | */ |
||
62 | public function __construct(InjectorInterface $injector, Set $set) |
||
63 | { |
||
64 | $this->injector = $injector; |
||
65 | $this->set = $set; |
||
66 | } |
||
67 | |||
68 | /** |
||
69 | * @return mixed |
||
70 | */ |
||
71 | public function get() |
||
74 | } |
||
75 | }; |
||
78 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: