Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | final class MethodInvocationProvider implements ProviderInterface |
||
14 | { |
||
15 | /** @var ?MethodInvocation */ |
||
16 | private $invocation; |
||
17 | |||
18 | public function set(MethodInvocation $invocation): void |
||
19 | { |
||
20 | $this->invocation = $invocation; |
||
21 | } |
||
22 | |||
23 | public function get(): MethodInvocation |
||
30 | } |
||
31 | } |
||
32 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: