From 6c5024cf1d405510dc4dc945f0aeb8c5a609abfb Mon Sep 17 00:00:00 2001 From: Colin Viebrock Date: Wed, 6 Dec 2023 23:26:17 -0600 Subject: [PATCH] turn on strict mode --- tests/RelationTests.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/RelationTests.php b/tests/RelationTests.php index 8f6e6fe..8735301 100644 --- a/tests/RelationTests.php +++ b/tests/RelationTests.php @@ -2,6 +2,7 @@ use Cviebrock\EloquentSluggable\Tests\Models\Author; use Cviebrock\EloquentSluggable\Tests\Models\PostWithEagerRelation; +use Illuminate\Database\Eloquent\Model; /** * Class RelationTests @@ -16,6 +17,8 @@ class RelationTests extends TestCase */ public function testEagerLoading(): void { + Model::shouldBeStrict(true); + $author = Author::create([ 'name' => 'Arthur Conan Doyle' ]);