Skip to content

[TwigBundle] FilesystemLoader::exists() throws a deprecated warning since Twig 1.27 and Symfony 3.0.5 #20346

Closed
@francoispluchino

Description

@francoispluchino

The Symfony\Bundle\TwigBundle\Loader\FilesystemLoader::exists() method throws a deprecated exception:

In Symfony\Bundle\TwigBundle\Loader\FilesystemLoader::findTemplate(), you must accept a second argument that when set to "false" returns "false" instead of throwing an exception. Not supporting this argument is deprecated since version 1.27

In Symfony\Bundle\TwigBundle\Loader\FilesystemLoader::findTemplate(), the $throw argument isn't passed to the Twig_Loader_Filesystem::findTemplate() parent method.

The result, is that the value of func_num_args() is equal to 1 and not the value 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions