From 38ec28d8d10668eb4bb712d57ccec22ba7d711ef Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Tue, 19 Sep 2023 19:50:08 +0200 Subject: [PATCH] test symfony 7 --- .github/workflows/ci.yml | 7 +++++-- composer.json | 6 +++--- src/Liip/RMT/Output/Output.php | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e544589..32ce4c25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,14 +37,17 @@ jobs: - php-version: '8.0' phpunit-version: 9 symfony-version: '^6' + - php-version: '8.3' + phpunit-version: 9 + symfony-version: '^7' # Minimum supported dependencies with the oldest PHP version - php-version: '7.1' phpunit-version: 7 composer-flag: '--prefer-stable --prefer-lowest' # Test latest unreleased versions - - php-version: '8.0' + - php-version: '8.3' phpunit-version: 9 - symfony-version: '^6' + symfony-version: '^7' stability: 'dev' name: PHP ${{ matrix.php-version }} Test on Symfony ${{ matrix.symfony-version }} ${{ matrix.dependencies}} ${{ matrix.stability }} ${{ matrix.composer-flag }} steps: diff --git a/composer.json b/composer.json index 997105ad..0c0222cb 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,9 @@ "require": { "ext-json": "*", "php": "^7.1|^8.0", - "symfony/console": "^3.4|^4.0|^5.0|^6.0", - "symfony/yaml": "^3.4|^4.0|^5.0|^6.0", - "symfony/process": "^3.4|^4.0|^5.0|^6.0", + "symfony/console": "^3.4|^4.0|^5.0|^6.0|^7.0", + "symfony/yaml": "^3.4|^4.0|^5.0|^6.0|^7.0", + "symfony/process": "^3.4|^4.0|^5.0|^6.0|^7.0", "composer/semver": "^3.4" }, "autoload": { diff --git a/src/Liip/RMT/Output/Output.php b/src/Liip/RMT/Output/Output.php index cb01570b..2fa480c5 100644 --- a/src/Liip/RMT/Output/Output.php +++ b/src/Liip/RMT/Output/Output.php @@ -48,7 +48,7 @@ public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = nu $this->getFormatter()->setStyle('title', new OutputFormatterStyle('white', 'blue')); } - public function doWrite($message, $newline) + public function doWrite($message, $newline): void { // In case the $message is multi lines $message = str_replace(PHP_EOL, PHP_EOL.$this->getIndentPadding(), $message);