diff --git a/src/Template.php b/src/Template.php index 52305ae..90ac4a1 100644 --- a/src/Template.php +++ b/src/Template.php @@ -119,7 +119,7 @@ class Template{ public static function filter($data, string $key, string $value){ switch($key){ case 'type': - switch($filters['type']){ + switch($value){ case 'array': if(!is_array($data)) return [$data];