Skip to content

Fix default order. #121

Fix default order.

Fix default order. #121

Triggered via pull request May 16, 2023 16:44
Status Failure
Total duration 31s
Artifacts

static.yml

on: pull_request
Matrix: psalm / psalm
Fit to window
Zoom out
Zoom in

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.