Skip to content

Commit

Permalink
Merge pull request #115 from lara-zeus/fix-tag
Browse files Browse the repository at this point in the history
fix return type in tag model for `findBySlug`
  • Loading branch information
atmonshi authored Jun 24, 2023
2 parents c3ef408 + 175a578 commit 591dc7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 591dc7a

Please sign in to comment.