Skip to content

Commit

Permalink
ChangeOwnerLimitationMapper: Fix phpDoc
Browse files Browse the repository at this point in the history
Fix  ChangeOwnerLimitationMapper::getSelectionChoices phpDoc

Unable to parse file "vendor/ibexa/admin-ui/src/lib/Limitation/Mapper/ChangeOwnerLimitationMapper.php", an error was detected: An array can have only integers or strings as keys

When used as key, `null` is casted to an empty string.
 `ChangeOwnerLimitation::LIMITATION_VALUE_SELF` should never be `null`.
  • Loading branch information
adriendupuis committed Mar 30, 2023
1 parent e4f70d5 commit e087df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Limitation/Mapper/ChangeOwnerLimitationMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function filterLimitationValues(Limitation $limitation): array
}

/**
* @return array<?int, string>
* @return array<int, string>
*/
private function getSelectionChoices(): array
{
Expand Down

0 comments on commit e087df9

Please sign in to comment.