Skip to content

Commit 0dfb7a7

Browse files
committed
Fix phpstan errors
1 parent 34956ec commit 0dfb7a7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Resources/PageResource/Pages/ManagePageTree.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ protected function getFooterWidgets(): array
7777

7878
public function getTreeRecordIcon(?Model $record = null): ?string
7979
{
80-
/** @var HasPageAttributes $record */
81-
return $record?->isPublished() ? null : 'heroicon-o-eye-slash' ;
80+
if ($record instanceof HasPageAttributes) {
81+
return $record->isPublished() ? null : 'heroicon-o-eye-slash';
82+
}
83+
84+
return null;
8285
}
8386
}

0 commit comments

Comments
 (0)