ZF2-251: Zend\Di\Definition\CompilerDefinition

Issue Type: Bug Created: 2012-04-03T05:47:44.000+0000 Last Updated: 2012-05-26T15:52:59.000+0000 Status: Resolved Fix version(s): Reporter: BLANCHON Vincent (blanchon_vincent) Assignee: BLANCHON Vincent (blanchon_vincent) Tags: - Zend\Di

Related issues: Attachments:



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.


Posted by BLANCHON Vincent (blanchon_vincent) on 2012-04-03T10:28:15.000+0000

same thing in RuntimeDefinition :

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

Posted by BLANCHON Vincent (blanchon_vincent) on 2012-04-03T18:26:24.000+0000

Ok, pull request #1004 to fix

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.