Skip to content

Commit

Permalink
array filter updated to receive false as an excepted value
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanbin Siyam committed Dec 1, 2021
1 parent aa72e35 commit 3f7c82f
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 3f7c82f

Please sign in to comment.