Skip to content

Commit

Permalink
Merge pull request #2 from potasiyam/master
Browse files Browse the repository at this point in the history
array filter updated to receive false as an excepted value
  • Loading branch information
afiqiqmal authored Dec 2, 2021
2 parents aa72e35 + 3f7c82f commit 2ec3732
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Helper/ArrayHelper.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php


namespace Afiqiqmal\HuaweiPush\Helper;


class ArrayHelper
{
static function filter($array)
{
return array_filter($array, function ($var) {
return ($var !== NULL && $var !== FALSE && $var !== '');
return ($var !== NULL && $var !== '');
});
}
}

0 comments on commit 2ec3732

Please sign in to comment.