Fix default order. #121
Annotations
9 errors
InvalidNullableReturnType:
src/Sort.php#L180
src/Sort.php:180:16: InvalidNullableReturnType: The declared return type 'array<array-key, mixed>' for Yii\DataProvider\Sort::getColumnOrders is not nullable, but 'array<array-key, int|mixed>|null' contains null (see https://psalm.dev/144)
|
NullableReturnStatement:
src/Sort.php#L211
src/Sort.php:211:16: NullableReturnStatement: The declared return type 'array<array-key, mixed>' for Yii\DataProvider\Sort::getColumnOrders is not nullable, but the function returns 'array<array-key, 3|4|mixed>|null' (see https://psalm.dev/139)
|
MixedAssignment:
src/Sort.php#L417
src/Sort.php:417:45: MixedAssignment: Unable to determine the type that $definition is being assigned to (see https://psalm.dev/032)
|
MixedAssignment:
src/Sort.php#L418
src/Sort.php:418:13: MixedAssignment: Unable to determine the type that $defaultDirection is being assigned to (see https://psalm.dev/032)
|
MixedArrayAccess:
src/Sort.php#L418
src/Sort.php:418:33: MixedArrayAccess: Cannot access array value on mixed variable $definition (see https://psalm.dev/051)
|
MixedAssignment:
src/Sort.php#L419
src/Sort.php:419:13: MixedAssignment: Unable to determine the type of this assignment (see https://psalm.dev/032)
|
psalm / PHP 8.2-ubuntu-latest
Process completed with exit code 2.
|
psalm / PHP 8.1-ubuntu-latest
The job was canceled because "ubuntu-latest_8_2" failed.
|
psalm / PHP 8.1-ubuntu-latest
The operation was canceled.
|