From 175a578ad0b55ae770c022e38259fa679c312379 Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Sun, 25 Jun 2023 01:53:48 +0300 Subject: [PATCH] fix return type in tag model for `findBySlug` --- src/Models/Tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/Tag.php b/src/Models/Tag.php index 867ca4b..dcf8832 100644 --- a/src/Models/Tag.php +++ b/src/Models/Tag.php @@ -50,7 +50,7 @@ protected function generateSlug(string $locale): string return call_user_func($slugger, $this->getTranslation('name', $locale)); } - public static function findBySlug(string $slug, string $type = null, string $locale = null): Model + public static function findBySlug(string $slug, string $type = null, string $locale = null): Model|null { $locale = $locale ?? static::getLocale();