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