diff --git a/tests/Node/Expression/FilterTest.php b/tests/Node/Expression/FilterTest.php index a794ceea14..d5ee15ddda 100644 --- a/tests/Node/Expression/FilterTest.php +++ b/tests/Node/Expression/FilterTest.php @@ -114,7 +114,7 @@ public static function provideTests(): iterable // from extension $node = self::createFilter($environment, $string, 'foo'); - $tests[] = [$node, \sprintf('$this->extensions[\'%s\']->foo("abc")', \get_class(self::createExtension())), $environment]; + $tests[] = [$node, \sprintf('$this->extensions[\'%s\']->foo("abc")', self::createExtension()::class), $environment]; $node = self::createFilter($environment, $string, 'foobar'); $tests[] = [$node, '$this->env->getFilter(\'foobar\')->getCallable()("abc")', $environment];