Skip to content

Commit 8aadd04

Browse files
committed
Limitation\Type: type array keys
1 parent bd4475f commit 8aadd04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/contracts/Limitation/Type.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,17 @@ public function acceptValue(APILimitationValue $limitationValue);
9292
*
9393
* @param \Ibexa\Contracts\Core\Repository\Values\User\Limitation $limitationValue
9494
*
95-
* @return \Ibexa\Contracts\Core\FieldType\ValidationError[]
95+
* @return array<int, \Ibexa\Contracts\Core\FieldType\ValidationError>
9696
*/
9797
public function validate(APILimitationValue $limitationValue);
9898

9999
/**
100100
* Create the Limitation Value.
101101
*
102-
* The is the method to create values as Limitation type needs value knowledge anyway in acceptValue,
102+
* This is the method to create values as Limitation type needs value knowledge anyway in acceptValue,
103103
* the reverse relation is provided by means of identifier lookup (Value has identifier, and so does RoleService).
104104
*
105-
* @param mixed[] $limitationValues
105+
* @param array<int, mixed> $limitationValues
106106
*
107107
* @return \Ibexa\Contracts\Core\Repository\Values\User\Limitation
108108
*/
@@ -120,7 +120,7 @@ public function buildValue(array $limitationValues);
120120
* @param \Ibexa\Contracts\Core\Repository\Values\User\Limitation $value
121121
* @param \Ibexa\Contracts\Core\Repository\Values\User\UserReference $currentUser
122122
* @param \Ibexa\Contracts\Core\Repository\Values\ValueObject $object
123-
* @param \Ibexa\Contracts\Core\Repository\Values\ValueObject[]|null $targets An array of location, parent or "assignment"
123+
* @param array<int, \Ibexa\Contracts\Core\Repository\Values\ValueObject>|null $targets An array of location, parent or "assignment"
124124
* objects, if null: none where provided by caller
125125
*
126126
* @return bool|null Returns one of ACCESS_* constants, {@see Type::ACCESS_GRANTED}, {@see Type::ACCESS_ABSTAIN}, or {@see Type::ACCESS_DENIED}.

0 commit comments

Comments
 (0)