Skip to content

Commit 07ceaf1

Browse files
committed
Fix PhpStan error.
1 parent 69aa8d1 commit 07ceaf1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/MetaDataManager.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,8 @@ public static function endpointInjectDependencies(Endpoint $endpoint, Container
9898
);
9999
$p = $ref->getProperty($property);
100100
$p->setAccessible(true);
101-
$p->setValue(
102-
$endpoint,
103-
$container->getByType($service),
104-
);
101+
/** @phpstan-ignore-next-line */
102+
$p->setValue($endpoint, $container->getByType($service));
105103
}
106104
}
107105
}

src/Middleware/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function setContainer(NetteContainer $container): void
2626
/**
2727
* @template T
2828
* @param class-string<T> $type
29-
* @return ?T
29+
* @return T
3030
*/
3131
public function getByType(string $type)
3232
{

0 commit comments

Comments
 (0)