upgrade to phpstan lvl 7

This commit is contained in:
Fabio Ivona
2021-11-15 22:20:00 +01:00
parent f2a9b73b83
commit f3f58c7f52
11 changed files with 22 additions and 11 deletions

View File

@ -35,6 +35,8 @@ final class Container
/**
* Gets a dependency from the container.
*
* @param class-string $id
*
* @return object
*/
public function get(string $id)
@ -60,6 +62,8 @@ final class Container
/**
* Tries to build the given instance.
*
* @param class-string $id
*/
private function build(string $id): object
{
@ -83,6 +87,7 @@ final class Container
}
}
//@phpstan-ignore-next-line
return $this->get($candidate);
},
$constructor->getParameters()