Update dependencies

This commit is contained in:
Chris Hunt
2024-02-16 21:36:54 +00:00
parent 22d7a59e59
commit d52ae0d3c3
9569 changed files with 460443 additions and 282416 deletions

View File

@@ -20,26 +20,20 @@ use Psr\Container\ContainerInterface;
*/
class ContainerLoader extends ObjectLoader
{
private $container;
private ContainerInterface $container;
public function __construct(ContainerInterface $container, string $env = null)
public function __construct(ContainerInterface $container, ?string $env = null)
{
$this->container = $container;
parent::__construct($env);
}
/**
* {@inheritdoc}
*/
public function supports($resource, string $type = null)
public function supports(mixed $resource, ?string $type = null): bool
{
return 'service' === $type && \is_string($resource);
}
/**
* {@inheritdoc}
*/
protected function getObject(string $id)
protected function getObject(string $id): object
{
return $this->container->get($id);
}