Skip to content

Commit

Permalink
Fix phpdocs (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantom409 authored and devanych committed Jan 29, 2021
1 parent 9116646 commit 0d0bf5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function hasChild(Item $parent, Item $child): bool
* @param Item $item
* @param string $userId The user ID.
*
* @return Assignment The role or permission assignment information.
* @return Assignment|null The role or permission assignment information.
* @throws \Exception If the role has already been assigned to the user.
*
*/
Expand Down
3 changes: 2 additions & 1 deletion src/StorageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ public function removeChildren(Item $parent): void;

/**
* Returns all role assignment information.
* @return Assignment[]
* @psalm-return array<string,array<string, Assignment>>
* @return array
*/
public function getAssignments(): array;

Expand Down

0 comments on commit 0d0bf5f

Please sign in to comment.