From b1dde977810e3d6233b4d3f8dba9e2c0acc81cd5 Mon Sep 17 00:00:00 2001 From: Fabio Capucci Date: Mon, 30 Dec 2024 14:26:41 +0100 Subject: [PATCH] fix --- src/Filters/{ => Custom}/TernaryFilter.php | 3 ++- tests/Integration/CustomFiltersTest.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename src/Filters/{ => Custom}/TernaryFilter.php (84%) diff --git a/src/Filters/TernaryFilter.php b/src/Filters/Custom/TernaryFilter.php similarity index 84% rename from src/Filters/TernaryFilter.php rename to src/Filters/Custom/TernaryFilter.php index 17382a4..45854c4 100644 --- a/src/Filters/TernaryFilter.php +++ b/src/Filters/Custom/TernaryFilter.php @@ -1,8 +1,9 @@ factory = \Keepsuit\Liquid\TemplateFactory::new() + $this->factory = \Keepsuit\Liquid\EnvironmentFactory::new() ->setStrictVariables(true) - ->registerFilter(\Keepsuit\Liquid\Filters\TernaryFilter::class); + ->registerFilters(\Keepsuit\Liquid\Filters\Custom\TernaryFilter::class); }); test('ternary', function () {