[HttpKernel] Fix notice in Kernel

This commit is contained in:
ornicar 2011-02-06 12:39:06 -08:00 committed by Fabien Potencier
parent 86631a9fee
commit afad113297

View File

@ -372,7 +372,7 @@ abstract class Kernel implements KernelInterface
}
// 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]));
}