Thanks to visit codestin.com
Credit goes to github.com

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

Fix typehint for getServiceLocator().#5471

Closed
Thinkscape wants to merge 1 commit into
zendframework:masterfrom
Thinkscape:patch-1
Closed

Fix typehint for getServiceLocator().#5471
Thinkscape wants to merge 1 commit into
zendframework:masterfrom
Thinkscape:patch-1

Conversation

@Thinkscape
Copy link
Copy Markdown
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