ZF2-251: Zend\Di\Definition\CompilerDefinition

Description

Hi,

In Zend\Di\Definition\CompilerDefinition :

public function getClassSupertypes($class) { if (!array_key_exists($class, $this->classes[$class])) { [...]

Use array_key_exists($class, $this->classes) and not array_key_exists($class, $this->classes[$class])

And in line 57 :

public function addCodeScannerFile(FileScanner $fileScanner)

Not namespace add for Zend\Code\Scanner\FileScanner, so for zf2 FileScanner is a Zend\Di\Definition\FileScanner class but don't exist.

Comments

same thing in RuntimeDefinition :

public function getClassSupertypes($class) { if (!array_key_exists($class, $this->classes[$class])) { $this->processClass($class); } return $this->classes[$class]['supertypes']; }

Ok, pull request #1004 to fix