소스 검색

[DependencyInjection] removed unneeded cast

Fabien Potencier 15 년 전
부모
커밋
ab7533e6c0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Components/DependencyInjection/Loader/YamlFileLoader.php

+ 1 - 1
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';