Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class EloquentSituations extends BaseSituation |
||
8 | { |
||
9 | const methods = [ |
||
10 | 'whenYouFetch' => 'retrieved', |
||
11 | 'whenYouCreate' => 'creating', |
||
12 | 'whenYouUpdate' => 'updating', |
||
13 | 'whenYouSave' => 'saving', |
||
14 | 'whenYouDelete' => 'deleting', |
||
15 | 5 | ]; |
|
16 | |||
17 | 5 | public function hasMethod($method) |
|
20 | } |
||
21 | |||
22 | public function __call($method, $model) |
||
28 |
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..