Improve compatibility of item's type with Yii 2 #1004
Annotations
7 errors
InvalidReturnType:
src/Item.php#L138
src/Item.php:138:22: InvalidReturnType: The declared return type 'array{created_at: int|null, description: string, name: string, rule_name: null|string, type: string, updated_at: int|null}' for Yiisoft\Rbac\Item::getAttributes is incorrect, got 'array{created_at: int|null, description: string, name: string, rule_name: null|string, type: int, updated_at: int|null}' (see https://psalm.dev/011)
|
InvalidReturnStatement:
src/Item.php#L149
src/Item.php:149:16: InvalidReturnStatement: The inferred type 'array{created_at: int|null, description: string, name: string, rule_name: null|string, type: int, updated_at: int|null}' does not match the declared return type 'array{created_at: int|null, description: string, name: string, rule_name: null|string, type: string, updated_at: int|null}' for Yiisoft\Rbac\Item::getAttributes (see https://psalm.dev/128)
|
psalm / PHP 8.1-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.
|
psalm / PHP 8.2-ubuntu-latest
The job was canceled because "ubuntu-latest_8_1" failed.
|
psalm / PHP 8.2-ubuntu-latest
The operation was canceled.
|