| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | #[\Override] |
||
| 26 | public function command(MethodInvocation $invocation, ResourceObject $ro) |
||
| 27 | { |
||
| 28 | unset($invocation); |
||
| 29 | $getQuery = $this->getQuery($ro); |
||
| 30 | $delUri = clone $ro->uri; |
||
| 31 | $delUri->query = $getQuery; |
||
|
|
|||
| 32 | |||
| 33 | // delete data in repository |
||
| 34 | $this->repository->purge($delUri); |
||
| 35 | |||
| 36 | // GET for re-generate (in interceptor) |
||
| 37 | $ro->uri->query = $getQuery; |
||
| 38 | $get = [$ro, 'onGet']; |
||
| 39 | if (is_callable($get)) { |
||
| 40 | call_user_func_array($get, array_values($getQuery)); |
||
| 41 | } |
||
| 54 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..