Skip to content

Commit cb5d9c4

Browse files
committed
Add configurable authorisation gate for previewing unpublished pages: fix phpstan error
1 parent 699ff26 commit cb5d9c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/PageResource/Pages/ManagePageTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ protected function getWithRelationQuery(): Builder
9393
{
9494
$query = parent::getWithRelationQuery();
9595
if (method_exists($this->getModel(), 'parent') && $this->getModel()::has('parent')) {
96-
$treeDepth = FilamentFlexibleContentBlockPages::config()->getPageTreeMaximumDepth(FilamentFlexibleContentBlockPages::config()->getPageModel());
96+
$treeDepth = FilamentFlexibleContentBlockPages::config()->getPageTreeMaximumDepth(FilamentFlexibleContentBlockPages::config()->getPageModel()::class);
9797
$parentRelations = [];
9898
$parentRelation = '';
9999
while ($treeDepth-- > 0) {

0 commit comments

Comments
 (0)