Skip to content

Commit

Permalink
Merge pull request #46 from saulens22/symfony7-support
Browse files Browse the repository at this point in the history
Symfony v7 support
  • Loading branch information
WouterSioen authored Mar 26, 2024
2 parents 0a0fe28 + c049aab commit 9efa243
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"bin": ["bin/license-checker"],
"require": {
"php": "^8.1",
"symfony/console": "^4.0 || ^5.0 || ^6.0",
"symfony/process": "^4.0 || ^5.0 || ^6.0",
"symfony/yaml": "^4.0 || ^5.0 || ^6.0"
"symfony/console": "^4.0 || ^5.0 || ^6.0 || ^7.0",
"symfony/process": "^4.0 || ^5.0 || ^6.0 || ^7.0",
"symfony/yaml": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "^10.1",
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/CheckLicenses.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
private readonly DependencyTree $dependencyTree,
private readonly TableRenderer $tableRenderer
) {
parent::__construct();
parent::__construct(self::$defaultName);

Check failure on line 30 in src/Commands/CheckLicenses.php

View workflow job for this annotation

GitHub Actions / Psalm

MixedArgument

src/Commands/CheckLicenses.php:30:29: MixedArgument: Argument 1 of Symfony\Component\Console\Command\Command::__construct cannot be mixed, expecting null|string (see https://psalm.dev/030)
}

protected function configure(): void
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/CountUsedLicenses.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CountUsedLicenses extends Command
public function __construct(
private readonly UsedLicensesParser $usedLicensesParser
) {
parent::__construct();
parent::__construct(self::$defaultName);

Check failure on line 22 in src/Commands/CountUsedLicenses.php

View workflow job for this annotation

GitHub Actions / Psalm

MixedArgument

src/Commands/CountUsedLicenses.php:22:29: MixedArgument: Argument 1 of Symfony\Component\Console\Command\Command::__construct cannot be mixed, expecting null|string (see https://psalm.dev/030)
}

protected function configure(): void
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/GenerateConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(
private readonly AllowedLicensesParser $allowedLicensesParser,
private readonly UsedLicensesParser $usedLicensesParser
) {
parent::__construct();
parent::__construct(self::$defaultName);

Check failure on line 25 in src/Commands/GenerateConfig.php

View workflow job for this annotation

GitHub Actions / Psalm

MixedArgument

src/Commands/GenerateConfig.php:25:29: MixedArgument: Argument 1 of Symfony\Component\Console\Command\Command::__construct cannot be mixed, expecting null|string (see https://psalm.dev/030)
}

protected function configure(): void
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/ListAllowedLicenses.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ListAllowedLicenses extends Command
public function __construct(
private readonly AllowedLicensesParser $allowedLicensesParser
) {
parent::__construct();
parent::__construct(self::$defaultName);

Check failure on line 21 in src/Commands/ListAllowedLicenses.php

View workflow job for this annotation

GitHub Actions / Psalm

MixedArgument

src/Commands/ListAllowedLicenses.php:21:29: MixedArgument: Argument 1 of Symfony\Component\Console\Command\Command::__construct cannot be mixed, expecting null|string (see https://psalm.dev/030)
}

protected function configure(): void
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/ListUsedLicenses.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ListUsedLicenses extends Command
public function __construct(
private readonly UsedLicensesParser $usedLicensesParser
) {
parent::__construct();
parent::__construct(self::$defaultName);

Check failure on line 22 in src/Commands/ListUsedLicenses.php

View workflow job for this annotation

GitHub Actions / Psalm

MixedArgument

src/Commands/ListUsedLicenses.php:22:29: MixedArgument: Argument 1 of Symfony\Component\Console\Command\Command::__construct cannot be mixed, expecting null|string (see https://psalm.dev/030)
}

protected function configure(): void
Expand Down

0 comments on commit 9efa243

Please sign in to comment.