Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fix #5289 (abstract factories return type) #5293

Closed

Conversation

stefanotorresi
Copy link
Contributor

Fixes #5289

Just let me know if you consider allowing services to return bool(false) as a BC break, because I'm not sure.

In any case, imho it should be allowed.

@weierophinney
Copy link
Member

Since the original check was for a boolean false, I think we should allow any value except a null value.

weierophinney added a commit that referenced this pull request Oct 23, 2013
Fix #5289 (abstract factories return type)

Conflicts:
	tests/ZendTest/ServiceManager/ServiceManagerTest.php
weierophinney added a commit that referenced this pull request Oct 23, 2013
- do not call initializers if we have a null value
weierophinney added a commit that referenced this pull request Oct 23, 2013
Forward port #5293

Conflicts:
	library/Zend/ServiceManager/ServiceManager.php
@ghost ghost assigned weierophinney Oct 23, 2013
weierophinney added a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015
…si/hotfix/5289

Fix zendframework/zendframework#5289 (abstract factories return type)

Conflicts:
	tests/ZendTest/ServiceManager/ServiceManagerTest.php
weierophinney added a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015
- do not call initializers if we have a null value
weierophinney added a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015
Forward port zendframework/zendframework#5293

Conflicts:
	library/Zend/ServiceManager/ServiceManager.php
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Abstract Factories handling is inconsistent with normal Factories
2 participants