From 847c9da240bcc5781f3aa4071a67bafc19f0fc12 Mon Sep 17 00:00:00 2001 From: Werner Freytag Date: Wed, 17 May 2023 20:11:50 +0200 Subject: [PATCH] remove type hint --- src/Generator.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Generator.php b/src/Generator.php index 94eb3c2..6d66af2 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -153,9 +153,8 @@ protected function publishedCollectionTerms() protected static function siteFilter(\Statamic\Sites\Site $currentSite): callable { - return static function (\Statamic\Entries\Entry $entry) use ($currentSite) { - return $entry->redirectUrl() === null - && $entry->locale() === $currentSite->lang(); + return static function ($entry) use ($currentSite) { + return !$entry->isRedirect() && $entry->locale() === $currentSite->handle(); }; }