| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function __call($name, $arguments) |
||
| 44 | { |
||
| 45 | if ($name == 'all') |
||
| 46 | $result = call_user_func_array([$this->model, 'all'], $arguments); |
||
| 47 | else |
||
| 48 | $result = call_user_func_array([$this->query, $name], $arguments); |
||
| 49 | |||
| 50 | config()->set('laravel-model-caching.disabled', $this->disableInConfig); |
||
| 51 | |||
| 52 | return $result; |
||
| 53 | } |
||
| 55 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.