Skip to content

Add tests for access tree #916

Add tests for access tree

Add tests for access tree #916

Triggered via push February 9, 2024 08:52
Status Failure
Total duration 46s
Artifacts

static.yml

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

Annotations

9 errors
MoreSpecificReturnType: src/SimpleItemsStorage.php#L109
src/SimpleItemsStorage.php:109:50: MoreSpecificReturnType: The declared return type 'non-empty-array<string, array{children: array<string, Yiisoft\Rbac\Permission|Yiisoft\Rbac\Role>, item: Yiisoft\Rbac\Permission|Yiisoft\Rbac\Role}>' for Yiisoft\Rbac\SimpleItemsStorage::getAccessTree is more specific than the inferred return type 'array<string, array{children: array<string, Yiisoft\Rbac\Permission|Yiisoft\Rbac\Role>, item: Yiisoft\Rbac\Permission|Yiisoft\Rbac\Role}>' (see https://psalm.dev/070)
InvalidReturnStatement: src/SimpleItemsStorage.php#L112
src/SimpleItemsStorage.php:112:20: InvalidReturnStatement: The inferred type 'array<never, never>' does not match the declared return type 'non-empty-array<string, array{children: array<string, Yiisoft\Rbac\Permission|Yiisoft\Rbac\Role>, item: Yiisoft\Rbac\Permission|Yiisoft\Rbac\Role}>' for Yiisoft\Rbac\SimpleItemsStorage::getAccessTree (see https://psalm.dev/128)
psalm / PHP 8.1-ubuntu-latest
Process completed with exit code 2.
psalm / PHP 8.2-ubuntu-latest
The job was canceled because "ubuntu-latest_8_1" failed.
MoreSpecificReturnType: src/SimpleItemsStorage.php#L109
src/SimpleItemsStorage.php:109:50: MoreSpecificReturnType: The declared return type 'non-empty-array<string, array{children: array<string, Yiisoft\Rbac\Permission|Yiisoft\Rbac\Role>, item: Yiisoft\Rbac\Permission|Yiisoft\Rbac\Role}>' for Yiisoft\Rbac\SimpleItemsStorage::getAccessTree is more specific than the inferred return type 'array<string, array{children: array<string, Yiisoft\Rbac\Permission|Yiisoft\Rbac\Role>, item: Yiisoft\Rbac\Permission|Yiisoft\Rbac\Role}>' (see https://psalm.dev/070)
InvalidReturnStatement: src/SimpleItemsStorage.php#L112
src/SimpleItemsStorage.php:112:20: InvalidReturnStatement: The inferred type 'array<never, never>' does not match the declared return type 'non-empty-array<string, array{children: array<string, Yiisoft\Rbac\Permission|Yiisoft\Rbac\Role>, item: Yiisoft\Rbac\Permission|Yiisoft\Rbac\Role}>' for Yiisoft\Rbac\SimpleItemsStorage::getAccessTree (see https://psalm.dev/128)
psalm / PHP 8.2-ubuntu-latest
Process completed with exit code 2.
psalm / PHP 8.3-ubuntu-latest
The job was canceled because "ubuntu-latest_8_1" failed.
psalm / PHP 8.3-ubuntu-latest
The operation was canceled.