Skip to content

Commit 7ae4edc

Browse files
committed
ci: attempt fix of ci
1 parent a749801 commit 7ae4edc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Injector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function invoke(
4343
try {
4444
array_push(
4545
$arguments,
46-
$extraArgs[$refParamTypeName] ?? $this->container->get($refType->getName())
46+
$extraArgs[$refParamTypeName] ?? $this->container->get($refType->getName()) /** @phpstan-ignore-line It's impossible to know the type of the refType at this point. */
4747
);
4848
}
4949
catch(ServiceNotFoundException $exception) {

src/ServiceNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ServiceNotFoundException extends ServiceContainerException implements NotF
88
public function __construct(
99
string $className,
1010
int $code = 0,
11-
Throwable $previous = null
11+
?Throwable $previous = null
1212
) {
1313
$message = "Service can not be located within Container: \"$className\" - docs: https://www.php.gt/servicecontainer/notfound";
1414
parent::__construct($message, $code, $previous);

0 commit comments

Comments
 (0)