diff --git a/psalm-baseline.xml b/psalm-baseline.xml index ffddff3b..fc0c09d3 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -27,7 +27,6 @@ function (ReflectionParameter $parameter) use ($container, $requestedName) { - function (ReflectionParameter $parameter) use ($container, $requestedName) { $requestedName @@ -53,9 +52,15 @@ + + $service + setService + + $service + $name @@ -110,10 +115,8 @@ $abstractFactory $config['delegators'] - $config['delegators'] $config['initializers'] $config['invokables'] - $config['invokables'] $config['lazy_services'] @@ -325,7 +328,6 @@ $instance - $instance $callback() @@ -359,22 +361,18 @@ $config['shared'] - $callback $callback $className $container $container $container $container - $container $instance $instance $name - $name $requestedName - function ($container, $name, $callback) { function ($container, $name, $callback) { function ($container, $requestedName, ?array $options = null) { @@ -411,7 +409,6 @@ $idx1 $idx2 $instance - $instance $lazyServices $method $name @@ -423,8 +420,6 @@ $object1 $object1 $object1 - $object1 - $object2 $object2 $object2 $object2 @@ -436,7 +431,6 @@ $callback() - $callback() array @@ -448,7 +442,6 @@ $instance - $instance $callSequences @@ -536,7 +529,6 @@ $name $name $name - $name function ( @@ -554,7 +546,6 @@ $inc $inc $instance - $instance $instance1 $instance1 $instance2 diff --git a/src/AbstractPluginManager.php b/src/AbstractPluginManager.php index 8b5569a5..fe8a85d4 100644 --- a/src/AbstractPluginManager.php +++ b/src/AbstractPluginManager.php @@ -32,7 +32,7 @@ * The implementation extends `ServiceManager`, thus providing the same set * of capabilities as found in that implementation. * - * @template InstanceType of object + * @template InstanceType * @implements PluginManagerInterface * @psalm-import-type ServiceManagerConfiguration from ServiceManager * @psalm-suppress PropertyNotSetInConstructor @@ -136,7 +136,6 @@ public function configure(array $config) * * @param string|class-string $name * @param InstanceType $service - * @psalm-suppress MoreSpecificImplementedParamType */ public function setService($name, $service) { diff --git a/src/PluginManagerInterface.php b/src/PluginManagerInterface.php index 156da327..f0d1540b 100644 --- a/src/PluginManagerInterface.php +++ b/src/PluginManagerInterface.php @@ -12,7 +12,7 @@ * * A plugin manager is a specialized service locator used to create homogeneous objects * - * @template InstanceType of object + * @template InstanceType */ interface PluginManagerInterface extends ServiceLocatorInterface {