From 9a5348cf3525b5b4a9a71b82c160a1a8f784c419 Mon Sep 17 00:00:00 2001 From: sheychen Date: Wed, 25 Apr 2018 19:47:06 +0200 Subject: [PATCH] Fix filter value --- src/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];