Issue #3383316 by Spokje: Replace deprecated getComposer() of class Composer\Command\BaseCommand in ComposerScaffoldCommand

merge-requests/4637/merge
catch 2023-08-26 09:14:31 +01:00
parent 70e2c38099
commit b50ba1f4a9
2 changed files with 1 additions and 9 deletions

View File

@ -48,7 +48,7 @@ EOT
* {@inheritdoc}
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$handler = new Handler($this->getComposer(), $this->getIO());
$handler = new Handler($this->requireComposer(), $this->getIO());
$handler->scaffold();
return 0;
}

View File

@ -1,13 +1,5 @@
parameters:
ignoreErrors:
-
message: """
#^Call to deprecated method getComposer\\(\\) of class Composer\\\\Command\\\\BaseCommand\\:
since Composer 2\\.3\\.0 use requireComposer or tryComposer depending on whether you have \\$required set to true or false$#
"""
count: 1
path: ../composer/Plugin/Scaffold/ComposerScaffoldCommand.php
-
message: "#^Variable \\$data_path in empty\\(\\) always exists and is not falsy\\.$#"
count: 1