Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #34877 [TwigBundle] fix findTemplate() to return
null
Twig3 FilesystemLoader::findTemplate() should return `string|null` instead of Twig2 `string|null|false`: see <https://github.com/twigphp/Twig/blob/3.x/src/Loader/FilesystemLoader.php#L167> Returning `null` fixes `exists()` of Twig 3 FilesystemLoader without breaking Twig 2 (which expected `null` or `false` for not found templates). Change the test to assert `null` instead of `false`.
- Loading branch information