Templating/Helper/Condition/ExpressionLanguageProvider.php
public function getFunctions()
    {
        return [
            new ExpressionFunction(
                'isGranted',
                function ($str) {
                    throw new \Exception($str . ' function is not implemented');
                },
                function (array $values, $attributes, $object = null) {
                    return $this->security->isGranted($attributes, $object);
                }
            ),
        ];
    }
public function getFunctions()
    {
        return [
            new ExpressionFunction(
                'isGranted',
                function ($str) {
                    throw new \Exception($str . ' function is not implemented');
                },
                function (array $values, $attributes, $object = null) {
                    return $this->security->isGranted($attributes, $object);
                }
            ),
        ];
    }
@return array|ExpressionFunction[]

@SuppressWarnings(PHPMD.UnusedLocalVariables)