From a81c0846256fb9131c4c06d119fbff9d01cbc198 Mon Sep 17 00:00:00 2001 From: Filippo Tessarotto Date: Tue, 5 Dec 2023 14:24:00 +0100 Subject: [PATCH] Add Symfony 7 support (#2246) * Add Symfony 7 support * Upgrade console too * Update compatibility with symfony/console --- composer.json | 6 +++--- tests/Phinx/Console/Output/RawBufferedOutput.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index a9c4342ee..7f8ee0be4 100644 --- a/composer.json +++ b/composer.json @@ -39,8 +39,8 @@ "php-64bit": ">=8.1", "cakephp/database": "^5.0.2", "psr/container": "^1.1|^2.0", - "symfony/console": "^6.0", - "symfony/config": "^3.4|^4.0|^5.0|^6.0" + "symfony/console": "^6.0|^7.0", + "symfony/config": "^3.4|^4.0|^5.0|^6.0|^7.0" }, "require-dev": { "ext-json": "*", @@ -48,7 +48,7 @@ "phpunit/phpunit": "^9.5.19", "cakephp/cakephp": "^5.0.2", "cakephp/cakephp-codesniffer": "^5.0", - "symfony/yaml": "^3.4|^4.0|^5.0|^6.0" + "symfony/yaml": "^3.4|^4.0|^5.0|^6.0|^7.0" }, "autoload": { "psr-4": { diff --git a/tests/Phinx/Console/Output/RawBufferedOutput.php b/tests/Phinx/Console/Output/RawBufferedOutput.php index dc72a0d8d..bfd0f45b6 100644 --- a/tests/Phinx/Console/Output/RawBufferedOutput.php +++ b/tests/Phinx/Console/Output/RawBufferedOutput.php @@ -16,7 +16,7 @@ class RawBufferedOutput extends BufferedOutput * @param int $options * @return void */ - public function writeln($messages, $options = 0) + public function writeln($messages, $options = 0): void { $this->write($messages, true, $options | self::OUTPUT_RAW); }