From 393d7280e5b8e7c12737d07db2e5678c05f40f27 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Wed, 20 Mar 2019 11:45:54 -0400 Subject: [PATCH] Fix case when multiple loaders are providing paths for the same namespace --- src/Symfony/Bridge/Twig/Command/DebugCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/Twig/Command/DebugCommand.php b/src/Symfony/Bridge/Twig/Command/DebugCommand.php index 5c22291ff0453..0c1e462fcfafe 100644 --- a/src/Symfony/Bridge/Twig/Command/DebugCommand.php +++ b/src/Symfony/Bridge/Twig/Command/DebugCommand.php @@ -264,7 +264,7 @@ private function getLoaderPaths(string $name = null): array $namespace = '@'.$namespace; } - $loaderPaths[$namespace] = $paths; + $loaderPaths[$namespace] = array_merge($loaderPaths[$namespace] ?? [], $paths); } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy