1 | <?php |
||
9 | abstract class Model extends BaseModel |
||
10 | { |
||
11 | /** |
||
12 | * Indicates if the IDs are auto-incrementing. |
||
13 | * This is not possible in cassandra so we override this |
||
14 | * |
||
15 | * @var bool |
||
16 | */ |
||
17 | public $incrementing = false; |
||
18 | |||
19 | /** |
||
20 | * @inheritdoc |
||
21 | */ |
||
22 | public function newEloquentBuilder($query) |
||
26 | |||
27 | /** |
||
28 | * @inheritdoc |
||
29 | */ |
||
30 | protected function newBaseQueryBuilder() |
||
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | public function freshTimestamp() |
||
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | */ |
||
48 | public function fromDateTime($value) |
||
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | protected function asDateTime($value) |
||
75 | |||
76 | /** |
||
77 | * @inheritdoc |
||
78 | */ |
||
79 | protected function originalIsNumericallyEquivalent($key) |
||
94 | |||
95 | /** |
||
96 | * Get the table qualified key name. |
||
97 | * Cassandra does not support the table.column annotation so |
||
98 | * we override this |
||
99 | * |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getQualifiedKeyName() |
||
106 | |||
107 | /** |
||
108 | * @inheritdoc |
||
109 | */ |
||
110 | public function __call($method, $parameters) |
||
119 | } |
||
120 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.