diff -ru src/LiveComponent/src/LiveComponentHydrator.php src/LiveComponent/src/LiveComponentHydrator.php --- src/LiveComponent/src/LiveComponentHydrator.php 2024-06-09 22:31:32.737914059 +0000 +++ src/LiveComponent/src/LiveComponentHydrator.php 2024-06-09 22:31:36.913061189 +0000 @@ -532,7 +532,7 @@ } if ('' === $value) { - return $allowsNull ? null : throw new BadRequestHttpException(sprintf('The model path "%s" was sent invalid date data "%s". Setting empty date value is not allowed, send a non-empty value or make the property nullable.', $propertyPathForError, $value, $dateFormat)) ; + return $allowsNull ? null : throw new BadRequestHttpException(sprintf('The model path "%s" was sent invalid date data "%s". Setting empty date value is not allowed, send a non-empty value or make the property nullable.', $propertyPathForError, $value, $dateFormat)); } if (null !== $dateFormat) { diff -ru src/LiveComponent/tests/Integration/LiveComponentHydratorTest.php src/LiveComponent/tests/Integration/LiveComponentHydratorTest.php --- src/LiveComponent/tests/Integration/LiveComponentHydratorTest.php 2024-06-09 22:31:32.975922446 +0000 +++ src/LiveComponent/tests/Integration/LiveComponentHydratorTest.php 2024-06-09 22:31:45.771373351 +0000 @@ -316,7 +316,7 @@ }) ->mountWith(['createdAt' => $date]) ->userUpdatesProps(['createdAt' => '']) - ->assertObjectAfterHydration(function (object $object) use ($date) { + ->assertObjectAfterHydration(function (object $object) { self::assertNull($object->createdAt); }) ;