1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

PHPStan: Fixed larastan loading and address some level2 issues

This commit is contained in:
Dan Brown
2023-12-10 14:58:05 +00:00
parent 45ce7a7126
commit c13fd2a9e6
9 changed files with 14 additions and 10 deletions

View File

@ -42,6 +42,7 @@ class ReferenceUpdater
$chapters = $entity->chapters()->get(['id']);
$children = $pages->concat($chapters);
foreach ($children as $bookChild) {
/** @var Reference[] $childRefs */
$childRefs = $this->referenceFetcher->getPageReferencesToEntity($bookChild)->values()->all();
array_push($references, ...$childRefs);
}