Twig's namespaces can be null

This commit is contained in:
Yonel Ceruto 2019-08-01 08:50:03 -04:00
parent e7122418e1
commit c11f20006b

View File

@ -105,7 +105,7 @@ class TemplateCacheCacheWarmer implements CacheWarmerInterface, ServiceSubscribe
* *
* @return array An array of templates * @return array An array of templates
*/ */
private function findTemplatesInFolder(string $namespace, string $dir) private function findTemplatesInFolder(?string $namespace, string $dir)
{ {
if (!is_dir($dir)) { if (!is_dir($dir)) {
return []; return [];