Explorar o código

[HttpKernel] Fix notice in Kernel

ornicar %!s(int64=14) %!d(string=hai) anos
pai
achega
afad113297
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Component/HttpKernel/Kernel.php

+ 1 - 1
src/Symfony/Component/HttpKernel/Kernel.php

@@ -372,7 +372,7 @@ abstract class Kernel implements KernelInterface
         }
         }
 
 
         // look for orphans
         // look for orphans
-        if (count($diff = array_diff(array_keys($directChildren), array_keys($this->bundles)))) {
+        if (count($diff = array_values(array_diff(array_keys($directChildren), array_keys($this->bundles))))) {
             throw new \LogicException(sprintf('Bundle "%s" extends bundle "%s", which is not registered.', $directChildren[$diff[0]], $diff[0]));
             throw new \LogicException(sprintf('Bundle "%s" extends bundle "%s", which is not registered.', $directChildren[$diff[0]], $diff[0]));
         }
         }