Skip to content

Commit

Permalink
Fix Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev committed Dec 12, 2023
1 parent bb0d2e5 commit 06df6f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ItemsStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private function hasItem(string $name): bool
/**
* @psalm-param Item::TYPE_* $type
*
* @psalm-return ($type is Item::TYPE_PERMISSION ? array<string, Permission> : array<string, Role>)
* @psalm-return ($type is Item::TYPE_PERMISSION ? Permission : Role)
*/
private function getInstanceByTypeAndName(string $type, string $name): Permission|Role
{
Expand Down

0 comments on commit 06df6f2

Please sign in to comment.