Skip to content

Commit

Permalink
fix array_filter call
Browse files Browse the repository at this point in the history
  • Loading branch information
madmages committed Jun 10, 2021
1 parent 3e26769 commit 0a3617e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/AbstractType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract public static function _getPropertyNames(): array;
abstract public function _getData(): array;

protected function normalizeData(array $data):array {
array_filter($data);
$data = array_filter($data);
array_walk_recursive($data, static function(&$item){
$item = $item instanceof AbstractType ? $item->_getData(): $item;
});
Expand Down

0 comments on commit 0a3617e

Please sign in to comment.