From a774e4b86ae084e42aa6961739838420dd87bdf8 Mon Sep 17 00:00:00 2001 From: Colin Viebrock Date: Tue, 21 Feb 2023 17:46:57 -0600 Subject: [PATCH] Fixes #596 --- CHANGELOG.md | 5 +++++ src/SluggableScopeHelpers.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1030d0f..f8ca1d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 10.0.x - xx-xxx-xxxx + +- fix for larastan issue (#596, thanks @WalrusSoup) + + ## 10.0.0 - 16-Feb-2023 - Laravel 10.0 support diff --git a/src/SluggableScopeHelpers.php b/src/SluggableScopeHelpers.php index b8664a0..78a5716 100644 --- a/src/SluggableScopeHelpers.php +++ b/src/SluggableScopeHelpers.php @@ -75,7 +75,7 @@ public static function findBySlug(string $slug, array $columns = ['*']) * * @param string $slug * @param array $columns - * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection + * @return \Illuminate\Database\Eloquent\Model|static * * @throws \Illuminate\Database\Eloquent\ModelNotFoundException */