diff --git a/src/Laravel/Tests/NullableBelongsToTest.php b/src/Laravel/Tests/NullableBelongsToTest.php index d90bea255d..5c657ec9e5 100644 --- a/src/Laravel/Tests/NullableBelongsToTest.php +++ b/src/Laravel/Tests/NullableBelongsToTest.php @@ -69,7 +69,7 @@ public function testOmittingBelongsToKeepsIt(): void public function testPatchWithExplicitNullClearsMorphTo(): void { - $slot = TimeSlotFactory::new()->create(); + $slot = TimeSlotFactory::new()->createOne(); $note = NullableMorphNoteFactory::new()->for($slot, 'noteable')->create(); $this->assertNotNull(NullableMorphNote::query()->sole()->noteable_id); // @phpstan-ignore-line