1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-09 14:46:53 +02:00

feat(helpers): update ArraysFilterHelper return type

This commit is contained in:
Awilum
2020-11-24 23:15:25 +03:00
parent 263d0e2048
commit c208407379

View File

@@ -22,6 +22,8 @@ if (! function_exists('arrays_filter')) {
{
$collection = arrays($items);
! isset($filter['return']) AND $filter['return'] = 'all';
if (isset($filter['where'])) {
if (is_array($filter['where'])) {
foreach ($filter['where'] as $key => $value) {