Skip to content

Commit 678b2e8

Browse files
Miteugenekorotkov
and
korotkov
authored
Fix/return string value (#58)
* fix return value --------- Co-authored-by: korotkov <[email protected]>
1 parent 454d3e4 commit 678b2e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Converters/MixedValueToScalarConverter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function handle(mixed $value): int|float|bool|string|null
1515
} elseif (is_object($value) && PHP_VERSION_ID >= 80100 && enum_exists(get_class($value))) {
1616
return $value->value;
1717
} elseif (is_object($value) && method_exists($value, '__toString')) {
18-
$value->__toString();
18+
return $value->__toString();
1919
}
2020

2121
throw new BulkValueTypeIsNotSupported($value);

0 commit comments

Comments
 (0)