Browse Source

DX: Fix CI/CD issues (#6411)

SpacePossum 2 years ago
parent
commit
a855d14dc5

+ 1 - 1
docker/php-7.4/Dockerfile

@@ -1,4 +1,4 @@
-FROM php:7.4-cli-alpine3.15
+FROM php:7.4-cli-alpine3.16
 
 ARG DOCKER_USER_ID
 ARG DOCKER_GROUP_ID

+ 1 - 1
docker/php-8.0/Dockerfile

@@ -1,4 +1,4 @@
-FROM php:8.0-cli-alpine3.15
+FROM php:8.0-cli-alpine3.16
 
 ARG DOCKER_USER_ID
 ARG DOCKER_GROUP_ID

+ 1 - 1
docker/php-8.1/Dockerfile

@@ -1,4 +1,4 @@
-FROM php:8.1-cli-alpine3.15
+FROM php:8.1-cli-alpine3.16
 
 ARG DOCKER_USER_ID
 ARG DOCKER_GROUP_ID

+ 2 - 0
src/Console/Command/DescribeCommand.php

@@ -32,6 +32,7 @@ use PhpCsFixer\StdinFileInfo;
 use PhpCsFixer\Tokenizer\Tokens;
 use PhpCsFixer\Utils;
 use PhpCsFixer\WordMatcher;
+use Symfony\Component\Console\Attribute\AsCommand;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Formatter\OutputFormatter;
 use Symfony\Component\Console\Input\InputArgument;
@@ -44,6 +45,7 @@ use Symfony\Component\Console\Output\OutputInterface;
  *
  * @internal
  */
+#[AsCommand(name: 'describe')]
 final class DescribeCommand extends Command
 {
     /**

+ 2 - 0
src/Console/Command/DocumentationCommand.php

@@ -20,6 +20,7 @@ use PhpCsFixer\Documentation\ListDocumentGenerator;
 use PhpCsFixer\Documentation\RuleSetDocumentationGenerator;
 use PhpCsFixer\FixerFactory;
 use PhpCsFixer\RuleSet\RuleSets;
+use Symfony\Component\Console\Attribute\AsCommand;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Output\OutputInterface;
@@ -30,6 +31,7 @@ use Symfony\Component\Finder\SplFileInfo;
 /**
  * @internal
  */
+#[AsCommand(name: 'documentation')]
 final class DocumentationCommand extends Command
 {
     /**

+ 2 - 0
src/Console/Command/FixCommand.php

@@ -25,6 +25,7 @@ use PhpCsFixer\Console\Report\FixReport\ReportSummary;
 use PhpCsFixer\Error\ErrorsManager;
 use PhpCsFixer\Runner\Runner;
 use PhpCsFixer\ToolInfoInterface;
+use Symfony\Component\Console\Attribute\AsCommand;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Input\InputArgument;
 use Symfony\Component\Console\Input\InputInterface;
@@ -42,6 +43,7 @@ use Symfony\Component\Stopwatch\Stopwatch;
  *
  * @internal
  */
+#[AsCommand(name: 'fix')]
 final class FixCommand extends Command
 {
     /**

+ 2 - 0
src/Console/Command/HelpCommand.php

@@ -17,6 +17,7 @@ namespace PhpCsFixer\Console\Command;
 use PhpCsFixer\FixerConfiguration\AllowedValueSubset;
 use PhpCsFixer\FixerConfiguration\FixerOptionInterface;
 use PhpCsFixer\Preg;
+use Symfony\Component\Console\Attribute\AsCommand;
 use Symfony\Component\Console\Command\HelpCommand as BaseHelpCommand;
 use Symfony\Component\Console\Formatter\OutputFormatterStyle;
 use Symfony\Component\Console\Input\InputInterface;
@@ -28,6 +29,7 @@ use Symfony\Component\Console\Output\OutputInterface;
  *
  * @internal
  */
+#[AsCommand(name: 'help')]
 final class HelpCommand extends BaseHelpCommand
 {
     /**

+ 2 - 0
src/Console/Command/ListFilesCommand.php

@@ -19,6 +19,7 @@ use PhpCsFixer\ConfigInterface;
 use PhpCsFixer\Console\ConfigurationResolver;
 use PhpCsFixer\ToolInfoInterface;
 use SplFileInfo;
+use Symfony\Component\Console\Attribute\AsCommand;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Input\InputOption;
@@ -29,6 +30,7 @@ use Symfony\Component\Console\Output\OutputInterface;
  *
  * @internal
  */
+#[AsCommand(name: 'list-files')]
 final class ListFilesCommand extends Command
 {
     /**

+ 2 - 0
src/Console/Command/ListSetsCommand.php

@@ -20,6 +20,7 @@ use PhpCsFixer\Console\Report\ListSetsReport\ReporterInterface;
 use PhpCsFixer\Console\Report\ListSetsReport\ReportSummary;
 use PhpCsFixer\Console\Report\ListSetsReport\TextReporter;
 use PhpCsFixer\RuleSet\RuleSets;
+use Symfony\Component\Console\Attribute\AsCommand;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Formatter\OutputFormatter;
 use Symfony\Component\Console\Input\InputInterface;
@@ -31,6 +32,7 @@ use Symfony\Component\Console\Output\OutputInterface;
  *
  * @internal
  */
+#[AsCommand(name: 'list-sets')]
 final class ListSetsCommand extends Command
 {
     /**

+ 2 - 0
src/Console/Command/SelfUpdateCommand.php

@@ -18,6 +18,7 @@ use PhpCsFixer\Console\SelfUpdate\NewVersionCheckerInterface;
 use PhpCsFixer\PharCheckerInterface;
 use PhpCsFixer\Preg;
 use PhpCsFixer\ToolInfoInterface;
+use Symfony\Component\Console\Attribute\AsCommand;
 use Symfony\Component\Console\Command\Command;
 use Symfony\Component\Console\Input\InputInterface;
 use Symfony\Component\Console\Input\InputOption;
@@ -32,6 +33,7 @@ use Symfony\Component\Console\Output\OutputInterface;
  *
  * @internal
  */
+#[AsCommand(name: 'self-update')]
 final class SelfUpdateCommand extends Command
 {
     /**

Some files were not shown because too many files changed in this diff