It seems like array('defaultOrder' => ...odels\search\SORT_ASC)) of type array<string,array<string,integer>> is incompatible with the declared type boolean|yii\data\Sort of property $sort.
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..
Loading history...
27
'defaultOrder' => [
28
'username' => SORT_ASC,
29
],
30
];
31
if (!$this->load($params) || !$this->validate()) {
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..