Use snake case for item attribute names (ease migration from Yii 2) #875
Annotations
3 errors
Static analysis.:
src/Item.php#L139
src/Item.php:139:22: InvalidReturnType: The declared return type 'array{createdAt: int|null, description: string, name: string, ruleName: null|string, type: string, updatedAt: int|null}' for Yiisoft\Rbac\Item::getAttributes is incorrect, got 'array{created_at: int|null, description: string, name: string, rule_name: null|string, type: string, updated_at: int|null}' which is different due to additional array shape fields (rule_name, updated_at, created_at) (see https://psalm.dev/011)
|
Static analysis.:
src/Item.php#L150
src/Item.php:150:16: InvalidReturnStatement: The inferred type 'array{created_at: int|null, description: string, name: string, rule_name: null|string, type: string, updated_at: int|null}' does not match the declared return type 'array{createdAt: int|null, description: string, name: string, ruleName: null|string, type: string, updatedAt: int|null}' for Yiisoft\Rbac\Item::getAttributes due to additional array shape fields (rule_name, updated_at, created_at) (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