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

Commit fa915d9

Browse files
committed
PHPDoc fixes after rebase
1 parent 7c1c2c4 commit fa915d9

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

phpstan.neon.dist

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ parameters:
1313

1414
ignoreErrors:
1515
- "#Casting to [a-z]+ something that's already [a-z]+#"
16-
- '#PHPDoc tag @throws with type Interop\\Container\\Exception\\ContainerException is not subtype of Throwable#'
17-
- '#PHPDoc tag @throws with type ([\w\\\|]+\|)?Psr\\Container\\ContainerExceptionInterface(\|[\w\\\|]+)? is not subtype of Throwable#'
16+
- '#PHPDoc tag @throws with type Psr\\Container\\ContainerExceptionInterface is not subtype of Throwable#'
1817
# AbstractPluginManager::__construct() accepts more types:
1918
- '#Result of && is always false#'

src/Factory/DelegatorFactoryInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace Zend\ServiceManager\Factory;
99

10+
use Psr\Container\ContainerExceptionInterface;
1011
use Psr\Container\ContainerInterface;
1112
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
1213
use Zend\ServiceManager\Exception\ServiceNotFoundException;
@@ -32,7 +33,7 @@ interface DelegatorFactoryInterface
3233
* @throws ServiceNotFoundException if unable to resolve the service.
3334
* @throws ServiceNotCreatedException if an exception is raised when
3435
* creating a service.
35-
* @throws ContainerException if any other error occurs
36+
* @throws ContainerExceptionInterface if any other error occurs
3637
*/
3738
public function __invoke(ContainerInterface $container, $name, callable $callback, array $options = null);
3839
}

src/Factory/FactoryInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace Zend\ServiceManager\Factory;
99

10+
use Psr\Container\ContainerExceptionInterface;
1011
use Psr\Container\ContainerInterface;
1112
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
1213
use Zend\ServiceManager\Exception\ServiceNotFoundException;
@@ -31,7 +32,7 @@ interface FactoryInterface
3132
* @throws ServiceNotFoundException if unable to resolve the service.
3233
* @throws ServiceNotCreatedException if an exception is raised when
3334
* creating a service.
34-
* @throws ContainerException if any other error occurs
35+
* @throws ContainerExceptionInterface if any other error occurs
3536
*/
3637
public function __invoke(ContainerInterface $container, $requestedName, array $options = null);
3738
}

src/PluginManagerInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ interface PluginManagerInterface extends ServiceLocatorInterface
2323
* @return void
2424
* @throws InvalidServiceException If created instance does not respect the
2525
* constraint on type imposed by the plugin manager
26-
* @throws ContainerException if any other error occurs
2726
*/
2827
public function validate($instance);
2928
}

src/ServiceManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ private function mapAliasesToTargets()
926926
/**
927927
* Instantiate abstract factories in order to avoid checks during service construction.
928928
*
929-
* @param string|Factory\AbstractFactoryInterface $abstractFactories
929+
* @param string|Factory\AbstractFactoryInterface $abstractFactory
930930
* @return void
931931
*/
932932
private function resolveAbstractFactoryInstance($abstractFactory)

0 commit comments

Comments
 (0)