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
2 changes: 1 addition & 1 deletion src/DelegatingContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DelegatingContainer implements ContainerInterface

/**
*/
public function __construct(ServiceProviderInterface $provider, PsrContainerInterface $parent = null)
public function __construct(ServiceProviderInterface $provider, ?PsrContainerInterface $parent = null)
{
$this->provider = $provider;
$this->parent = $parent;
Expand Down
8 changes: 4 additions & 4 deletions src/Exception/NotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
class NotFoundException extends ContainerException implements NotFoundExceptionInterface
{
/**
* @param string $message The error message.
* @param int $code The error code.
* @param Throwable|null $previous The inner error, if any.
* @param string $message The error message.
* @param int $code The error code.
* @param ?Throwable $previous The inner error, if any.
*/
public function __construct(
string $message = '',
int $code = 0,
Throwable $previous = null
?Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
}
Expand Down
6 changes: 3 additions & 3 deletions src/ProxyContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ class ProxyContainer implements BaseContainerInterface
protected $innerContainer;

/**
* @param BaseContainerInterface|null $innerContainer The inner container, if any.
* May also be set later with {@see setInnerContainer()}.
* @param ?BaseContainerInterface $innerContainer The inner container, if any.
* May also be set later with {@see setInnerContainer()}.
*/
public function __construct(BaseContainerInterface $innerContainer = null)
public function __construct(?BaseContainerInterface $innerContainer = null)
{
$this->innerContainer = $innerContainer;
}
Expand Down
Loading