From 1b5ff1154b43763d5efbd31305e950582090dbca Mon Sep 17 00:00:00 2001 From: Maxcastel Date: Fri, 16 Oct 2026 15:05:41 +0200 Subject: [PATCH] fix(laravel): pass a factory to for() in NullableBelongsToTest --- src/Laravel/Tests/NullableBelongsToTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Laravel/Tests/NullableBelongsToTest.php b/src/Laravel/Tests/NullableBelongsToTest.php index d90bea255d..f35e51d2de 100644 --- a/src/Laravel/Tests/NullableBelongsToTest.php +++ b/src/Laravel/Tests/NullableBelongsToTest.php @@ -69,8 +69,7 @@ public function testOmittingBelongsToKeepsIt(): void public function testPatchWithExplicitNullClearsMorphTo(): void { - $slot = TimeSlotFactory::new()->create(); - $note = NullableMorphNoteFactory::new()->for($slot, 'noteable')->create(); + $note = NullableMorphNoteFactory::new()->for(TimeSlotFactory::new(), 'noteable')->create(); $this->assertNotNull(NullableMorphNote::query()->sole()->noteable_id); // @phpstan-ignore-line $response = $this->patchJson('/api/nullable_morph_notes/'.$note->id, [ // @phpstan-ignore-line