-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,7 +143,6 @@ public function setService($name, $service) | |
|
||
/** | ||
* @param class-string<InstanceType>|string $name Service name of plugin to retrieve. | ||
Check failure on line 145 in src/AbstractPluginManager.php GitHub Actions / ci / QA Checks (Psalm [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@v1, ...UnusedDocblockParam
|
||
* @param null|array<mixed> $options Options to use when creating the instance. | ||
* @return mixed | ||
Check failure on line 146 in src/AbstractPluginManager.php GitHub Actions / ci / QA Checks (PHPCodeSniffer [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-ac...
|
||
* @psalm-return ($name is class-string<InstanceType> ? InstanceType : mixed) | ||
* @throws Exception\ServiceNotFoundException If the manager does not have | ||
|
@@ -152,7 +151,7 @@ public function setService($name, $service) | |
* @throws InvalidServiceException If the plugin created is invalid for the | ||
* plugin context. | ||
*/ | ||
public function get($name, ?array $options = null) | ||
public function get(string $id): mixed | ||
Check failure on line 154 in src/AbstractPluginManager.php GitHub Actions / ci / QA Checks (Psalm [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@v1, ...InvalidDocblock
|
||
{ | ||
if (! $this->has($name)) { | ||
Check failure on line 156 in src/AbstractPluginManager.php GitHub Actions / ci / QA Checks (Psalm [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@v1, ...UndefinedVariable
Check failure on line 156 in src/AbstractPluginManager.php GitHub Actions / ci / QA Checks (Psalm [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@v1, ...MixedArgument
|
||
if (! $this->autoAddInvokableClass || ! class_exists($name)) { | ||
|
@@ -166,7 +165,7 @@ public function get($name, ?array $options = null) | |
$this->setFactory($name, Factory\InvokableFactory::class); | ||
} | ||
|
||
$instance = ! $options ? parent::get($name) : $this->build($name, $options); | ||
$instance = parent::get($id) | ||
$this->validate($instance); | ||
Check failure on line 169 in src/AbstractPluginManager.php GitHub Actions / ci / QA Checks (Psalm [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@v1, ...ParseError
|
||
return $instance; | ||
} | ||
|