Twig's namespaces can be null
This commit is contained in:
parent
e7122418e1
commit
c11f20006b
@ -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