From 6c666139078007e9d32cc5689c6c36c6cf407f0d Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Mon, 16 Dec 2024 08:49:44 +0100 Subject: [PATCH] Update dependencies and clean up PHPStan baseline Add support for newer versions of development dependencies in `composer.json` by updating version constraints. Remove resolved deprecation issues from the PHPStan baseline to maintain a cleaner codebase. --- composer.json | 24 ++++++++++++------------ phpstan-baseline.neon | 10 ---------- 2 files changed, 12 insertions(+), 22 deletions(-) diff --git a/composer.json b/composer.json index 966f004..d2c7326 100644 --- a/composer.json +++ b/composer.json @@ -49,23 +49,23 @@ "require-dev": { "ext-sockets": "*", "dbrekelmans/bdi": "^1.1", - "ekino/phpstan-banned-code": "^1.0", + "ekino/phpstan-banned-code": "^1.0|^2.0|^3.0", "ergebnis/phpunit-slow-test-detector": "^2.14", - "infection/infection": "^0.28", + "infection/infection": "^0.28|^0.29", "matthiasnoback/symfony-config-test": "^5.1", "php-parallel-lint/php-parallel-lint": "^1.4", "phpstan/extension-installer": "^1.1", - "phpstan/phpdoc-parser": "^1.28", - "phpstan/phpstan": "^1.0", - "phpstan/phpstan-beberlei-assert": "^1.0", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-phpunit": "^1.4", - "phpstan/phpstan-strict-rules": "^1.0", - "phpstan/phpstan-symfony": "^1.4", + "phpstan/phpdoc-parser": "^1.28|^2.0", + "phpstan/phpstan": "^1.0|^2.0", + "phpstan/phpstan-beberlei-assert": "^1.0|^2.0", + "phpstan/phpstan-deprecation-rules": "^1.0|^2.0", + "phpstan/phpstan-phpunit": "^1.4|^2.0", + "phpstan/phpstan-strict-rules": "^1.0|^2.0", + "phpstan/phpstan-symfony": "^1.4|^2.0", "phpunit/phpunit": "^10.1|^11.0", - "rector/rector": "^1.0", - "staabm/phpstan-todo-by": "^0.1.27", - "struggle-for-php/sfp-phpstan-psr-log": "^0.21.0", + "rector/rector": "^1.0|^2.0", + "staabm/phpstan-todo-by": "^0.1.27|^0.2", + "struggle-for-php/sfp-phpstan-psr-log": "^0.21.0|^0.22|^0.23", "symfony/filesystem": "^6.4|^7.0", "symfony/framework-bundle": "^6.4|^7.0", "symfony/mime": "^6.4|^7.0", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1f6e76a..4b472c4 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -440,16 +440,6 @@ parameters: count: 3 path: src/ImageProcessor/GDImageProcessor.php - - - message: "#^Since spomky\\-labs/pwa\\-bundle 1\\.2\\.0\\: The \"format\", \"width\" and \"height\" parameters are deprecated and will be removed in 2\\.0\\.0\\. Please use \"configuration\" instead\\.\\.$#" - count: 1 - path: src/ImageProcessor/GDImageProcessor.php - - - - message: "#^Since spomky\\-labs/pwa\\-bundle 1\\.2\\.0\\: The \"format\", \"width\" and \"height\" parameters are deprecated and will be removed in 2\\.0\\.0\\. Please use \"configuration\" instead\\.\\.$#" - count: 1 - path: src/ImageProcessor/ImagickImageProcessor.php - - message: "#^PHPDoc tag @return with type array\\ is incompatible with native type string\\.$#" count: 1