Skip to content

Commit 9157cb4

Browse files
committed
Use null check instead of instanceof on deprecated class
1 parent 5b5040b commit 9157cb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/framework/src/Framework/Features/Navigation/NavigationGroup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected function addItem(NavigationItem $item): void
7979
protected function containsOnlyDocumentationPages(): bool
8080
{
8181
return count($this->getItems()) && collect($this->getItems())->every(function (NavigationItem $child): bool {
82-
return (! $child->getRoute() instanceof ExternalRoute) && $child->getRoute()->getPage() instanceof DocumentationPage;
82+
return ($child->getRoute() !== null) && $child->getRoute()->getPage() instanceof DocumentationPage;
8383
});
8484
}
8585
}

0 commit comments

Comments
 (0)