浏览代码

Fix array_diff comparing nested arrays

Marek Kalnik 12 年之前
父节点
当前提交
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;
     }