Skip to content

Commit bdac332

Browse files
committed
fixup! IBX-6773: Bookmarks for non-accessible contents cause exception
1 parent 2025ddf commit bdac332

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

phpstan-baseline.neon

+5
Original file line numberDiff line numberDiff line change
@@ -18165,6 +18165,11 @@ parameters:
1816518165
count: 1
1816618166
path: src/lib/Persistence/Legacy/Filter/CriterionQueryBuilder/Location/AncestorQueryBuilder.php
1816718167

18168+
-
18169+
message: "#^Cannot access offset 0 on array\\<bool\\|float\\|int\\|string\\>\\|bool\\|float\\|int\\|string\\.$#"
18170+
count: 1
18171+
path: src/lib/Persistence/Legacy/Filter/CriterionQueryBuilder/Location/BookmarkQueryBuilder.php
18172+
1816818173
-
1816918174
message: "#^Parameter \\#2 \\$criterionValue of method Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Filter\\\\Doctrine\\\\FilteringQueryBuilder\\:\\:buildOperatorBasedCriterionConstraint\\(\\) expects array, array\\<bool\\|float\\|int\\|string\\>\\|bool\\|float\\|int\\|string given\\.$#"
1817018175
count: 1

src/lib/Repository/BookmarkService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function loadBookmarks(int $offset = 0, int $limit = 25): BookmarkList
116116

117117
$result = $this->repository->getlocationService()->find($filter, []);
118118
} catch (BadStateException $e) {
119-
$this->logger->debug($e, [
119+
$this->logger->debug($e->getMessage(), [
120120
'exception' => $e,
121121
]);
122122

0 commit comments

Comments
 (0)