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

Fix typehint for getServiceLocator(). #5471

Closed
wants to merge 1 commit into from

Conversation

Thinkscape
Copy link
Member

It's always ServiceLocatorInterface because:

  • getServiceLocator() returns the contents of $this->serviceLocator
  • which is set by setServiceLocator(ServiceLocatorInterface $sl).
  • setter has a specific type hint

It's always `ServiceLocatorInterface` because getServiceLocator() returns the contents of $this->serviceLocator which is set by setServiceLocator(ServiceLocatorInterface $sl).
weierophinney added a commit that referenced this pull request Nov 13, 2013
Fix typehint for getServiceLocator().
weierophinney added a commit that referenced this pull request Nov 13, 2013
@ghost ghost assigned weierophinney Nov 13, 2013
weierophinney added a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015
…atch-1

Fix typehint for getServiceLocator().
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
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