Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
}
],
"require": {
"php": "^8.2",
"micro/dependency-injection": "^1.6.4"
"micro/dependency-injection": "^1.7"
},
"require-dev": {
"micro/testing-tool": "^1.7"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -47,10 +49,7 @@
"@statics",
"composer validate --strict",
"composer normalize",
"@coverage"
"@phpunit"
]
},
"require-dev": {
"micro/testing-tool": "^1.7"
}
}
2 changes: 1 addition & 1 deletion src/AutowireHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;

class AutowireHelper implements AutowireHelperInterface
readonly class AutowireHelper implements AutowireHelperInterface
{
public function __construct(private ContainerInterface $container)
{
Expand Down
10 changes: 8 additions & 2 deletions src/ContainerAutowire.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
namespace Micro\Component\DependencyInjection\Autowire;

use Micro\Component\DependencyInjection\Container;
use Micro\Component\DependencyInjection\ContainerDecoratorInterface;
use Micro\Component\DependencyInjection\ContainerInterface;
use Micro\Component\DependencyInjection\ContainerRegistryInterface;

/**
* @psalm-suppress UnusedClass
Expand All @@ -20,8 +23,11 @@ final class ContainerAutowire extends Container
{
private AutowireHelperFactoryInterface $autowireHelperFactory;

public function __construct(private readonly Container $container)
{
public function __construct(
private readonly ContainerInterface&
ContainerRegistryInterface&
ContainerDecoratorInterface $container,
) {
$this->autowireHelperFactory = new AutowireHelperFactory($this->container);
}

Expand Down
Loading