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

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/App/Command/Composer/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class UpdateCommand extends PackageCommand
{
private array $additionalComposerUpdateOptions = [];

public function __construct(private PackageService $packageService, string $name = null)
public function __construct(private PackageService $packageService, ?string $name = null)
{
parent::__construct($name);
}
Expand Down
2 changes: 1 addition & 1 deletion src/App/Command/Git/CloneCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
)]
final class CloneCommand extends PackageCommand
{
public function __construct(private PackageService $packageService, string $name = null)
public function __construct(private PackageService $packageService, ?string $name = null)
{
parent::__construct($name);
}
Expand Down
2 changes: 1 addition & 1 deletion src/App/Command/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class InstallCommand extends PackageCommand
{
private array $additionalComposerInstallOptions = [];

public function __construct(private PackageService $packageService, string $name = null)
public function __construct(private PackageService $packageService, ?string $name = null)
{
parent::__construct($name);
}
Expand Down
2 changes: 1 addition & 1 deletion src/App/Command/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ final class UpdateCommand extends PackageCommand
{
private array $additionalComposerUpdateOptions = [];

public function __construct(private PackageService $packageService, string $name = null)
public function __construct(private PackageService $packageService, ?string $name = null)
{
parent::__construct($name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class NamespaceUsageFinderNameResolver extends NameResolver
public function __construct(
protected NamespaceUsageFinder $namespaceUsageFinder,
protected string $environment,
ErrorHandler $errorHandler = null,
?ErrorHandler $errorHandler = null,
array $options = []
) {
parent::__construct($errorHandler, $options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ComposerConfigDependencyList
*/
private array $dependencies = [];

public function __construct(array $dependenciesAsArray = null)
public function __construct(?array $dependenciesAsArray = null)
{
if ($dependenciesAsArray !== null) {
foreach ($dependenciesAsArray as $packageName => $constraint) {
Expand Down
Loading