src/Viserio/Bridge/Twig/Extension/StrExtension.php
public function getFunctions(): array
    {
        return [
            new TwigFunction(
                'str_*',
                function (string $name) {
                    $arguments = \array_slice(\func_get_args(), 1);
                    $name = (string) ViserioStr::camelize($name);

                    return $this->callback::$name(...$arguments);
                }
            ),
        ];
    }
public function getFunctions(): array
    {
        return [
            new TwigFunction(
                'str_*',
                function (string $name) {
                    $arguments = \array_slice(\func_get_args(), 1);
                    $name = (string) ViserioStr::camelize($name);

                    return $this->callback::$name(...$arguments);
                }
            ),
        ];
    }
{@inheritdoc}