Skip to content

Commit

Permalink
Fix PhpStan error.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Sep 10, 2022
1 parent 31c09b2 commit 69aa8d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MetaDataManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static function endpointInjectDependencies(Endpoint $endpoint, Container
$p->setAccessible(true);
$p->setValue(
$endpoint,
$container->getByType($service), // @phpstan-ignore-line
$container->getByType($service),
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function setContainer(NetteContainer $container): void
* @param class-string<T> $type
* @return ?T
*/
public function getByType(string $type): object
public function getByType(string $type)
{
return $this->container->getByType($type);
}
Expand Down

0 comments on commit 69aa8d1

Please sign in to comment.