Просмотр исходного кода

Fix array_diff comparing nested arrays

Marek Kalnik 12 лет назад
Родитель
Сommit
98ad71d0bc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      DependencyInjection/Compiler/ExtensionCompilerPass.php

+ 1 - 1
DependencyInjection/Compiler/ExtensionCompilerPass.php

@@ -106,7 +106,7 @@ class ExtensionCompilerPass implements CompilerPassInterface
         }
 
         if(isset($excludes[$id])){
-            $extensions = array_diff($extensions, $excludes);
+            $extensions = array_diff($extensions, $excludes[$id]);
         }
         return $extensions;
     }