Skip to content

Commit

Permalink
Update QueryBuilder.php
Browse files Browse the repository at this point in the history
if an empty array is provided return simply an empty array
  • Loading branch information
mauretto78 authored Oct 22, 2019
1 parent f607925 commit 941b979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function create(array $array)
private function setArray(array $array)
{
if (empty($array)) {
throw new EmptyArrayException('Empty array provided.');
return [];
}

if (false === ConsistencyChecker::isValid($array)) {
Expand Down

0 comments on commit 941b979

Please sign in to comment.