Explorar o código

[bugfix] Only check for `is_null()` to filter out excluded values
- Using any other method is essentially a breaking change

Marnu Lombard %!s(int64=5) %!d(string=hai) anos
pai
achega
789d382d04
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Tools/Traits/ParamHelpers.php

+ 1 - 1
src/Tools/Traits/ParamHelpers.php

@@ -15,7 +15,7 @@ trait ParamHelpers
     {
         $values = [];
         $params = array_filter($params, function ($details) {
-            return is_string($details['value']) && strlen($details['value']);
+            return ! is_null($details['value']);
         });
 
         foreach ($params as $name => $details) {