minor #32867 [TwigBundle] Twig's namespaces can be null (yceruto)
This PR was merged into the 4.4 branch.
Discussion
----------
[TwigBundle] Twig's namespaces can be null
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | https://github.com/symfony/symfony/issues/32860
| License | MIT
| Doc PR | -
Commits
-------
c11f200
Twig's namespaces can be null
This commit is contained in:
commit
a837aa1813
@ -105,7 +105,7 @@ class TemplateCacheCacheWarmer implements CacheWarmerInterface, ServiceSubscribe
|
||||
*
|
||||
* @return array An array of templates
|
||||
*/
|
||||
private function findTemplatesInFolder(string $namespace, string $dir)
|
||||
private function findTemplatesInFolder(?string $namespace, string $dir)
|
||||
{
|
||||
if (!is_dir($dir)) {
|
||||
return [];
|
||||
|
Reference in New Issue
Block a user