Skip to content

Commit 941b979

Browse files
authoredOct 22, 2019
Update QueryBuilder.php
if an empty array is provided return simply an empty array
1 parent f607925 commit 941b979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/QueryBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static function create(array $array)
7878
private function setArray(array $array)
7979
{
8080
if (empty($array)) {
81-
throw new EmptyArrayException('Empty array provided.');
81+
return [];
8282
}
8383

8484
if (false === ConsistencyChecker::isValid($array)) {

0 commit comments

Comments
 (0)
Please sign in to comment.