-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix phpstan errors, converted UpdateDrushCommands to use custom IO
- Loading branch information
Showing
4 changed files
with
39 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,8 @@ | |
use Drush\Attributes\Argument; | ||
use Drush\Attributes\Command; | ||
use Drush\Commands\DrushCommands; | ||
use Drush\Drush; | ||
use League\Container\Container; | ||
use Symfony\Component\Console\Style\StyleInterface; | ||
use Psr\Container\ContainerInterface as DrushContainer; | ||
use Symfony\Component\Console\Style\OutputStyle; | ||
use Symfony\Component\Console\Style\SymfonyStyle; | ||
|
||
/** | ||
|
@@ -30,15 +29,15 @@ final class PackageScannerDrushCommands extends DrushCommands { | |
*/ | ||
public function __construct( | ||
Check failure on line 30 in src/Drush/Commands/PackageScannerDrushCommands.php GitHub Actions / tests (8.1)
Check failure on line 30 in src/Drush/Commands/PackageScannerDrushCommands.php GitHub Actions / tests (8.2)
|
||
private readonly VersionChecker $versionChecker, | ||
private readonly StyleInterface $style, | ||
private readonly OutputStyle $style, | ||
Check failure on line 32 in src/Drush/Commands/PackageScannerDrushCommands.php GitHub Actions / tests (8.1)
Check failure on line 32 in src/Drush/Commands/PackageScannerDrushCommands.php GitHub Actions / tests (8.2)
|
||
) { | ||
parent::__construct(); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public static function create(ContainerInterface $container, Container $drush): self { | ||
public static function create(ContainerInterface $container, DrushContainer $drush): self { | ||
return new self( | ||
$container->get('helfi_api_base.package_version_checker'), | ||
new SymfonyStyle($drush->get('input'), $drush->get('output')) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters