Skip to content

Commit

Permalink
fix: allways return string if cannot determine value in request hydrator
Browse files Browse the repository at this point in the history
  • Loading branch information
dakorpar committed Mar 14, 2024
1 parent a3dbde4 commit a6e6935
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Helpers/RequestHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ public static function castValueToBuiltInType(mixed $value, string $type, bool $

return new DateTimeImmutable($value); //@phpstan-ignore-line
default:
if (!is_scalar($value)) {
return null;
}

return (string) $value;
return (string) $value; //@phpstan-ignore-line
}
}

Expand Down

0 comments on commit a6e6935

Please sign in to comment.