Skip to content

Commit

Permalink
Update src/DataPipes/CastPropertiesDataPipe.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel authored May 3, 2024
1 parent 4ff8e75 commit 5da2d7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DataPipes/CastPropertiesDataPipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ protected function cast(
: $context->collect($value, $property->type->iterableClass);

$creationContext->previous();
return $data;

return $data;
} catch (CannotCreateData) {
return $value;
}
Expand Down

0 comments on commit 5da2d7e

Please sign in to comment.