Permalink
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...
1 parent 5477f50 commit 3309e7e5bdc17e30b6fc71813aba6bf3f7e7bf50 @demonkoryu committed Feb 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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()
{

0 comments on commit 3309e7e

Please sign in to comment.