Skip to content

Commit

Permalink
IBX-7838: Corrected message an error for InvalidArgumentType (#341)
Browse files Browse the repository at this point in the history
For more details see https://issues.ibexa.co/browse/IBX-7838 and #341

Key changes:

* Corrected message an error for InvalidArgumentType
  • Loading branch information
mateuszdebinski authored Feb 28, 2024
1 parent bd0e500 commit 83c4e50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -34725,11 +34725,6 @@ parameters:
count: 1
path: tests/integration/Core/Repository/LocationServiceTest.php

-
message: "#^Cannot access property \\$id on Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Location\\|false\\.$#"
count: 1
path: tests/integration/Core/Repository/LocationServiceTest.php

-
message: "#^Cannot access property \\$id on Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Location\\|null\\.$#"
count: 4
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Limitation/RoleLimitationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function acceptValue(APILimitationValue $limitationValue): void

foreach ($limitationValue->limitationValues as $key => $id) {
if (!is_int($id)) {
throw new InvalidArgumentType("\$limitationValue->limitationValues[{$key}]", 'int|string', $id);
throw new InvalidArgumentType("\$limitationValue->limitationValues[{$key}]", 'int', $id);
}
}
}
Expand Down

0 comments on commit 83c4e50

Please sign in to comment.