Add tests for access tree #916
Annotations
4 errors
|
Static analysis.:
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)
|
Static analysis.:
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)
|
Static analysis.
Process completed with exit code 2.
|
The logs for this run have expired and are no longer available.
Loading