Skip to content

Commit

Permalink
Builder only rejects null values
Browse files Browse the repository at this point in the history
  • Loading branch information
IsraelOrtuno committed Oct 5, 2018
1 parent 2c33f0e commit 37dab3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Builders/Builder.php
Expand Up @@ -40,7 +40,9 @@ public function build($builder, $data = []): void
return;
}

$data = array_filter($data, 'strlen');
$data = array_filter($data, function ($item) {
return ! is_null($item);
});

foreach ($data as $key => $content) {
// We will make sure we always provide an array as parameter to the
Expand Down

0 comments on commit 37dab3f

Please sign in to comment.