Skip to content

Commit 4ec8673

Browse files
committed
avoid cast to string an object
1 parent a6c5cd8 commit 4ec8673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Internal/DataArrayTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected function extractArrayStrings(string $key): array
5454
{
5555
$array = [];
5656
foreach ($this->extractArray($key) as $name => $value) {
57-
if (is_scalar($value) || is_object($value)) {
57+
if (is_scalar($value)) {
5858
$array[$name] = strval($value);
5959
}
6060
}

0 commit comments

Comments
 (0)