ZF-7035: "zf create project-provider" not work.

Issue Type: Bug Created: 2009-06-17T07:15:06.000+0000 Last Updated: 2011-08-03T15:54:34.000+0000 Status: Resolved Fix version(s): - 1.8.4 (23/Jun/09)

Reporter: Kazusuke Sasezaki (sasezaki) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Tool

Related issues: - ZF-6663

Attachments: - ProjectProvider_Abstract_loadProfile.patch


using trunk.

{quote} "$ zf create project-provider foo bar " {quote}

{quote} Catchable fatal error: Argument 1 passed to Zend_Tool_Project_Provider_ProjectProvider::createResource() must be an instance of Zend_Tool_Project_Profile, boolean given, called in /usr/share/php/Zend/Tool/Project/Provider/ProjectProvider.php on line 84 and defined in /usr/share/php/Zend/Tool/Project/Provider/ProjectProvider.php on line 44 {quote}

Zend_Tool_Project_Provider_ProjectProvider::create use parent's Zend_Tool_Project_Provider_Abstract::_loadProfileRequired() method.

_loadProfileRequired() expects "$this->_loadProfile() "'s return value // mixed(false or Zend_Tool_Project_Profile) but, _loadProfile() return boolean (not Zend_Tool_Project_Profile)

patch:: Zend_Tool_Project_Provider_Abstract::_loadProfile()

<pre class="literal"> 
-        return $profile;
+        return true;


Posted by Kazusuke Sasezaki (sasezaki) on 2009-06-17T07:16:38.000+0000

patch for Zend_Tool_Project_Provider_Abstract->_loadProfile

Posted by old of Satoru Yoshida ( on 2009-06-17T12:54:51.000+0000

replace "return true" to "return $profile"

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.