Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Sep 3, 2021
1 parent 6a555ca commit 5a6539f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filter/TransformFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class TransformFilter
*/
public function __invoke(array $value, callable $callback)
{
if (!$value) {
if (empty($value)) {
// The item will be skipped if "required" is not set
return null;
}
Expand Down

0 comments on commit 5a6539f

Please sign in to comment.