Skip to content

Commit 3a4f327

Browse files
committed
Revert "Update symfony/console requirement from ^6.0|^7.0 to ^6.0|^7.0|^8.0 (cakephp#2396)"
This reverts commit cea9c12.
1 parent 62290f8 commit 3a4f327

File tree

3 files changed

+1
-27
lines changed

3 files changed

+1
-27
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"cakephp/database": "^5.0.2",
4242
"psr/container": "^1.1|^2.0",
4343
"symfony/config": "^4.0|^5.0|^6.0|^7.0|^8.0",
44-
"symfony/console": "^6.0|^7.0|^8.0"
44+
"symfony/console": "^6.0|^7.0"
4545
},
4646
"require-dev": {
4747
"ext-json": "*",

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,3 @@ parameters:
44
message: "#^Expression on left side of \\?\\? is not nullable\\.$#"
55
count: 1
66
path: src/Phinx/Db/Adapter/MysqlAdapter.php
7-
8-
-
9-
message: "#^Call to an undefined static method Symfony\\\\Component\\\\Console\\\\Application\\:\\:addCommand\\(\\)\\.$#"
10-
count: 1
11-
path: src/Phinx/Console/PhinxApplication.php
12-
reportUnmatched: false

src/Phinx/Console/PhinxApplication.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Phinx\Console\Command\Status;
2121
use Phinx\Console\Command\Test;
2222
use Symfony\Component\Console\Application;
23-
use Symfony\Component\Console\Command\Command;
2423
use Symfony\Component\Console\Input\InputDefinition;
2524
use Symfony\Component\Console\Input\InputInterface;
2625
use Symfony\Component\Console\Input\InputOption;
@@ -91,25 +90,6 @@ public function doRun(InputInterface $input, OutputInterface $output): int
9190
return parent::doRun($input, $output);
9291
}
9392

94-
/**
95-
* Adds a command object.
96-
*
97-
* Provides backwards compatibility for Symfony Console 6.x/7.x where
98-
* the add() method exists, and Symfony 8.x where it was removed in
99-
* favor of addCommand().
100-
*
101-
* @param \Symfony\Component\Console\Command\Command $command A Command object
102-
* @return \Symfony\Component\Console\Command\Command|null
103-
*/
104-
public function add(Command $command): ?Command
105-
{
106-
if (method_exists(Application::class, 'addCommand')) {
107-
return parent::addCommand($command);
108-
}
109-
110-
return parent::add($command);
111-
}
112-
11393
/**
11494
* Get the current application version.
11595
*

0 commit comments

Comments
 (0)