diff --git a/src/Symfony/Components/DependencyInjection/Loader/YamlFileLoader.php b/src/Symfony/Components/DependencyInjection/Loader/YamlFileLoader.php index 0c7d7900f8..d10f9e0346 100644 --- a/src/Symfony/Components/DependencyInjection/Loader/YamlFileLoader.php +++ b/src/Symfony/Components/DependencyInjection/Loader/YamlFileLoader.php @@ -95,7 +95,7 @@ class YamlFileLoader extends FileLoader else { // try to detect loader with the extension - switch (pathinfo((string) $import['resource'], PATHINFO_EXTENSION)) + switch (pathinfo($import['resource'], PATHINFO_EXTENSION)) { case 'xml': $class = 'Symfony\\Components\\DependencyInjection\\Loader\\XmlFileLoader';