Skip to content

Commit

Permalink
Allow array to be returned from Unmarshaller::buildScalarValue()
Browse files Browse the repository at this point in the history
Otherwise, "mixed" array types are causing a TypeError when they contain an object value.
  • Loading branch information
mdio committed Apr 18, 2024
1 parent 5589fa0 commit 3f5f330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Unmarshaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ protected static function scalarZeroVal(string $type): float|bool|int|string|nul
* @param mixed $value
* @param string $type
* @param bool $nullable
* @return bool|float|int|string
* @return array|float|bool|int|string|null
*/
private function buildScalarValue(string $field, mixed $value, string $type, bool $nullable): float|bool|int|string|null
private function buildScalarValue(string $field, mixed $value, string $type, bool $nullable): array|float|bool|int|string|null
{
// if the incoming value is null...
if (null === $value) {
Expand Down

0 comments on commit 3f5f330

Please sign in to comment.