From 5da2d7e63c60b68e4d4cbe459bd6d0cb3b05a18b Mon Sep 17 00:00:00 2001 From: Adrien Foulon <6115458+Tofandel@users.noreply.github.com> Date: Fri, 3 May 2024 13:29:05 +0200 Subject: [PATCH] Update src/DataPipes/CastPropertiesDataPipe.php --- src/DataPipes/CastPropertiesDataPipe.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DataPipes/CastPropertiesDataPipe.php b/src/DataPipes/CastPropertiesDataPipe.php index 78a1aae1..1e1a0723 100644 --- a/src/DataPipes/CastPropertiesDataPipe.php +++ b/src/DataPipes/CastPropertiesDataPipe.php @@ -94,7 +94,8 @@ protected function cast( : $context->collect($value, $property->type->iterableClass); $creationContext->previous(); - return $data; + + return $data; } catch (CannotCreateData) { return $value; }