From 66987522a3f45b7db33f777957e4085edaed9962 Mon Sep 17 00:00:00 2001 From: Thierry T <1940947+lepiaf@users.noreply.github.com> Date: Tue, 8 Dec 2020 12:57:15 +0100 Subject: [PATCH 1/4] Add support for PHP 8 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 65f822e..c4946fc 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": "^7.2", + "php": "^7.2 || ^8.0", "symfony/framework-bundle": "^3.4 || ^4.3 || ^5.0", "symfony/validator": "^3.4 || ^4.3 || ^5.0", "symfony/translation": "^3.4 || ^4.3 || ^5.0", From 0b7ed338ba06b862c7b40be8f233c38ff5e69644 Mon Sep 17 00:00:00 2001 From: Thierry T <1940947+lepiaf@users.noreply.github.com> Date: Tue, 8 Dec 2020 17:12:10 +0100 Subject: [PATCH 2/4] Fix phpstan --- phpstan-baseline.neon | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 2dd6a23..4e662ae 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -145,3 +145,7 @@ parameters: count: 2 path: Twig/TranslationExtension.php + - + message: "#^Interface Translation\\\\Bundle\\\\Translator\\\\TranslatorInterface extends unknown interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\.$#" + count: 1 + path: Translator/TranslatorInterface.php From 5dd4d236e9729cc951dc994d78181e716032a58d Mon Sep 17 00:00:00 2001 From: Thierry T <1940947+lepiaf@users.noreply.github.com> Date: Tue, 8 Dec 2020 17:33:11 +0100 Subject: [PATCH 3/4] Exclude Translator/TranslatorInterface.php from phpstan analysis MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don't know how to manage this error ``` % make phpstan 2 ↵ ✹ Note: Using configuration file /project/phpstan.neon.dist. 49/49 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% ------ ---------------------------------------------------------------------- Line Translator/TranslatorInterface.php ------ ---------------------------------------------------------------------- 31 Interface Translation\Bundle\Translator\TranslatorInterface extends unknown interface Symfony\Component\Translation\TranslatorInterface. 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols ------ ---------------------------------------------------------------------- -- ------------------------------------------------------------------------- Error -- ------------------------------------------------------------------------- Error message "Interface Translation\Bundle\Translator\TranslatorInterface extends unknown interface Symfony\Component\Translation\TranslatorInterface." cannot be ignored, use excludes_analyse instead. -- ------------------------------------------------------------------------- ``` --- phpstan-baseline.neon | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 4e662ae..88381d0 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -145,7 +145,5 @@ parameters: count: 2 path: Twig/TranslationExtension.php - - - message: "#^Interface Translation\\\\Bundle\\\\Translator\\\\TranslatorInterface extends unknown interface Symfony\\\\Component\\\\Translation\\\\TranslatorInterface\\.$#" - count: 1 - path: Translator/TranslatorInterface.php + excludes_analyse: + - Translator/TranslatorInterface.php From dffc0105036e785ac8150d033679184e3b951307 Mon Sep 17 00:00:00 2001 From: Nyholm Date: Fri, 26 Mar 2021 19:26:36 +0100 Subject: [PATCH 4/4] Increase lowest version --- composer.json | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/composer.json b/composer.json index c4946fc..27ae566 100644 --- a/composer.json +++ b/composer.json @@ -11,30 +11,30 @@ ], "require": { "php": "^7.2 || ^8.0", - "symfony/framework-bundle": "^3.4 || ^4.3 || ^5.0", - "symfony/validator": "^3.4 || ^4.3 || ^5.0", - "symfony/translation": "^3.4 || ^4.3 || ^5.0", - "symfony/twig-bundle": "^3.4 || ^4.3 || ^5.0", - "symfony/finder": "^3.4 || ^4.3 || ^5.0", - "symfony/intl": "^3.4 || ^4.3 || ^5.0", + "symfony/framework-bundle": "^3.4.47 || ^4.4.20 || ^5.2.5", + "symfony/validator": "^3.4.47 || ^4.4.20 || ^5.2.5", + "symfony/translation": "^3.4.47 || ^4.4.20 || ^5.2.5", + "symfony/twig-bundle": "^3.4.47 || ^4.4.20 || ^5.2.5", + "symfony/finder": "^3.4.47 || ^4.4.20 || ^5.2.5", + "symfony/intl": "^3.4.47 || ^4.4.20 || ^5.2.5", "php-translation/symfony-storage": "^2.1", "php-translation/extractor": "^2.0", "nyholm/nsa": "^1.1", - "twig/twig": "^2.11 || ^3.0" + "twig/twig": "^2.14.4 || ^3.3" }, "require-dev": { "symfony/phpunit-bridge": "^5.2", "bamarni/composer-bin-plugin": "^1.3", "php-translation/translator": "^1.0", - "php-http/curl-client": "^1.7", - "php-http/message": "^1.6", + "php-http/curl-client": "^1.7 || ^2.0", + "php-http/message": "^1.11", "php-http/message-factory": "^1.0.2", - "symfony/console": "^3.4 || ^4.3 || ^5.0", - "symfony/twig-bridge": "^3.4 || ^4.3 || ^5.0", - "symfony/asset": "^3.4 || ^4.3 || ^5.0", - "symfony/dependency-injection": "^3.4 || ^4.3 || ^5.0", - "symfony/web-profiler-bundle": "^3.4 || ^4.3 || ^5.0", + "symfony/console": "^3.4.47 || ^4.4.20 || ^5.2.5", + "symfony/twig-bridge": "^3.4.47 || ^4.4.20 || ^5.2.5", + "symfony/asset": "^3.4.47 || ^4.4.20 || ^5.2.5", + "symfony/dependency-injection": "^3.4.47 || ^4.4.20 || ^5.2.5", + "symfony/web-profiler-bundle": "^3.4.47 || ^4.4.20 || ^5.2.5", "matthiasnoback/symfony-dependency-injection-test": "^4.1", "matthiasnoback/symfony-config-test": "^4.1", "nyholm/psr7": "^1.1",