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

Fix for issue #5395 #5396

Merged
merged 6 commits into from
Nov 1, 2013
Merged

Conversation

franz-deleon
Copy link
Contributor

@Ocramius has noted the method is going to be depracte but i thought id try to do a quick patch

* @param bool $checkAbstractFactories
* @param bool $usePeeringServiceManagers
* @return bool
*/
public function has($name, $checkAbstractFactories = true, $usePeeringServiceManagers = true)
{
if ($this->canCreate($name, $checkAbstractFactories)) {
if (is_string($name)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move the is_string check first since most usage of this function are string based

weierophinney added a commit that referenced this pull request Nov 1, 2013
weierophinney added a commit that referenced this pull request Nov 1, 2013
- Move opening conditional statement to same line as condition
- s/name/rName/ in string check for canonical name
- Trigger E_USER_DEPRECATED error from canCreate()
weierophinney added a commit that referenced this pull request Nov 1, 2013
@weierophinney weierophinney merged commit c6f2af4 into zendframework:develop Nov 1, 2013
@ghost ghost assigned weierophinney Nov 1, 2013
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
- Move opening conditional statement to same line as condition
- s/name/rName/ in string check for canonical name
- Trigger E_USER_DEPRECATED error from canCreate()
weierophinney added a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants