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

Commit

Permalink
PHPDoc fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvargiu committed Oct 19, 2018
1 parent 7c1c2c4 commit fa915d9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ parameters:

ignoreErrors:
- "#Casting to [a-z]+ something that's already [a-z]+#"
- '#PHPDoc tag @throws with type Interop\\Container\\Exception\\ContainerException is not subtype of Throwable#'
- '#PHPDoc tag @throws with type ([\w\\\|]+\|)?Psr\\Container\\ContainerExceptionInterface(\|[\w\\\|]+)? is not subtype of Throwable#'
- '#PHPDoc tag @throws with type Psr\\Container\\ContainerExceptionInterface is not subtype of Throwable#'
# AbstractPluginManager::__construct() accepts more types:
- '#Result of && is always false#'
3 changes: 2 additions & 1 deletion src/Factory/DelegatorFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace Zend\ServiceManager\Factory;

use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
use Zend\ServiceManager\Exception\ServiceNotFoundException;
Expand All @@ -32,7 +33,7 @@ interface DelegatorFactoryInterface
* @throws ServiceNotFoundException if unable to resolve the service.
* @throws ServiceNotCreatedException if an exception is raised when
* creating a service.
* @throws ContainerException if any other error occurs
* @throws ContainerExceptionInterface if any other error occurs
*/
public function __invoke(ContainerInterface $container, $name, callable $callback, array $options = null);
}
3 changes: 2 additions & 1 deletion src/Factory/FactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace Zend\ServiceManager\Factory;

use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
use Zend\ServiceManager\Exception\ServiceNotFoundException;
Expand All @@ -31,7 +32,7 @@ interface FactoryInterface
* @throws ServiceNotFoundException if unable to resolve the service.
* @throws ServiceNotCreatedException if an exception is raised when
* creating a service.
* @throws ContainerException if any other error occurs
* @throws ContainerExceptionInterface if any other error occurs
*/
public function __invoke(ContainerInterface $container, $requestedName, array $options = null);
}
1 change: 0 additions & 1 deletion src/PluginManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ interface PluginManagerInterface extends ServiceLocatorInterface
* @return void
* @throws InvalidServiceException If created instance does not respect the
* constraint on type imposed by the plugin manager
* @throws ContainerException if any other error occurs
*/
public function validate($instance);
}
2 changes: 1 addition & 1 deletion src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ private function mapAliasesToTargets()
/**
* Instantiate abstract factories in order to avoid checks during service construction.
*
* @param string|Factory\AbstractFactoryInterface $abstractFactories
* @param string|Factory\AbstractFactoryInterface $abstractFactory
* @return void
*/
private function resolveAbstractFactoryInstance($abstractFactory)
Expand Down

0 comments on commit fa915d9

Please sign in to comment.