Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Proper typehints in ServiceLocatorAwareTrait

The typehints are wrong. Either import the ServiceLocator class, or, what's the right thing, declare the types as what they are: ServiceLocatorInterface.
  • Loading branch information...
commit 3309e7e5bdc17e30b6fc71813aba6bf3f7e7bf50 1 parent 5477f50
@demonkoryu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/ServiceManager/ServiceLocatorAwareTrait.php
View
4 library/Zend/ServiceManager/ServiceLocatorAwareTrait.php
@@ -14,7 +14,7 @@
trait ServiceLocatorAwareTrait
{
/**
- * @var ServiceLocator
+ * @var ServiceLocatorInterface
*/
protected $serviceLocator = null;
@@ -34,7 +34,7 @@ public function setServiceLocator(ServiceLocatorInterface $serviceLocator)
/**
* Get service locator
*
- * @return ServiceLocator
+ * @return ServiceLocatorInterface
*/
public function getServiceLocator()
{
Please sign in to comment.
Something went wrong with that request. Please try again.