Skip to content

Commit c413c5c

Browse files
toArray Error Fix
1 parent fac1412 commit c413c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static public function toArray($value)
133133

134134
// if not valid array and check if array is greater than one element
135135
if(!self::isNotValidArray($value) && count($value) === 1){
136-
if(!self::isNotValidArray($value[0])){
136+
if(!self::isNotValidArray($value[0] ?? $value)){
137137
return $value;
138138
}
139139
}

0 commit comments

Comments
 (0)