diff --git a/src/JMBTechnologyLimited/Twig/Extensions/SameDayExtension.php b/src/JMBTechnologyLimited/Twig/Extensions/SameDayExtension.php index 356db5e..656e530 100644 --- a/src/JMBTechnologyLimited/Twig/Extensions/SameDayExtension.php +++ b/src/JMBTechnologyLimited/Twig/Extensions/SameDayExtension.php @@ -22,7 +22,7 @@ public function getFilters() public function getFunctions() { return array( - new \Twig_SimpleFilter(static::FUNCTION_NAME_SAMEDAY, array($this, 'sameday')), + new \Twig_SimpleFunction(static::FUNCTION_NAME_SAMEDAY, array($this, 'sameday')), ); }