diff --git a/src/Flame/Database/Traits/HasQueryModifier.php b/src/Flame/Database/Traits/HasQueryModifier.php index 3cb35cca..545efe61 100644 --- a/src/Flame/Database/Traits/HasQueryModifier.php +++ b/src/Flame/Database/Traits/HasQueryModifier.php @@ -41,8 +41,7 @@ public function scopeApplyFilters(Builder $builder, array $options = []): Builde collect($this->queryModifierFilters) ->each(function($value, $key) use ($builder, $options) { $params = (array)$value; - if (array_key_exists($key, $options)) { - $filterValue = array_get($options, $key, array_get($params, 'default')); + if ($filterValue = array_get($options, $key, array_get($params, 'default'))) { (new FiltersScope)($builder, $filterValue, $params[0]); } }); diff --git a/src/Flame/Support/Igniter.php b/src/Flame/Support/Igniter.php index 2b07a37e..1626a239 100644 --- a/src/Flame/Support/Igniter.php +++ b/src/Flame/Support/Igniter.php @@ -13,7 +13,7 @@ class Igniter { - protected const string VERSION = 'minor (v4.2.0)'; + protected const string VERSION = 'v4.2.1'; /** * The base path for extensions.