From 13c8f855700841db16901e8783e3ac2c6577a08d Mon Sep 17 00:00:00 2001 From: rflavien Date: Wed, 25 Feb 2026 15:44:18 +0100 Subject: [PATCH 1/3] fix(deprecated): User Deprecated: Since symfony/http-foundation 7.4: Request::get() --- src/Listener/RequestListener.php | 2 +- src/TransactionNamingStrategy/RouteNamingStrategy.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Listener/RequestListener.php b/src/Listener/RequestListener.php index d94b02f..7e69a96 100644 --- a/src/Listener/RequestListener.php +++ b/src/Listener/RequestListener.php @@ -86,7 +86,7 @@ public function setIgnoreTransaction(RequestEvent $event): void } $request = $event->getRequest(); - if (\in_array($request->get('_route'), $this->ignoredRoutes, true)) { + if (\in_array($request->attributes->get('_route'), $this->ignoredRoutes, true)) { $this->interactor->ignoreTransaction(); } diff --git a/src/TransactionNamingStrategy/RouteNamingStrategy.php b/src/TransactionNamingStrategy/RouteNamingStrategy.php index 5a17ba6..aa3369b 100644 --- a/src/TransactionNamingStrategy/RouteNamingStrategy.php +++ b/src/TransactionNamingStrategy/RouteNamingStrategy.php @@ -20,6 +20,6 @@ class RouteNamingStrategy implements TransactionNamingStrategyInterface { public function getTransactionName(Request $request): string { - return $request->get('_route') ?: 'Unknown Symfony route'; + return $request->attributes->get('_route') ?: 'Unknown Symfony route'; } } From 7c5d1d5c30563707f1a0b24d3a81b09ef2cd37de Mon Sep 17 00:00:00 2001 From: rflavien Date: Wed, 25 Feb 2026 16:00:11 +0100 Subject: [PATCH 2/3] update phpstan --- tools/phpstan/composer.json | 2 +- tools/phpstan/composer.lock | 21 ++++++++------------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/tools/phpstan/composer.json b/tools/phpstan/composer.json index a16b043..a377a2f 100644 --- a/tools/phpstan/composer.json +++ b/tools/phpstan/composer.json @@ -1,6 +1,6 @@ { "require": { - "phpstan/phpstan": "^2.0", + "phpstan/phpstan": "^2.1", "phpstan/extension-installer": "^1.4", "phpstan/phpstan-symfony": "^2.0" }, diff --git a/tools/phpstan/composer.lock b/tools/phpstan/composer.lock index 6a65558..8a8a54d 100644 --- a/tools/phpstan/composer.lock +++ b/tools/phpstan/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bd31d647a8cd2f418bff2a1118e816ee", + "content-hash": "af6031536271a4cb9e0f3e583150875e", "packages": [ { "name": "phpstan/extension-installer", @@ -56,16 +56,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.6", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "6eaec7c6c9e90dcfe46ad1e1ffa5171e2dab641c" - }, + "version": "2.1.40", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/6eaec7c6c9e90dcfe46ad1e1ffa5171e2dab641c", - "reference": "6eaec7c6c9e90dcfe46ad1e1ffa5171e2dab641c", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9b2c7aeb83a75d8680ea5e7c9b7fca88052b766b", + "reference": "9b2c7aeb83a75d8680ea5e7c9b7fca88052b766b", "shasum": "" }, "require": { @@ -110,7 +105,7 @@ "type": "github" } ], - "time": "2025-02-19T15:46:42+00:00" + "time": "2026-02-23T15:04:35+00:00" }, { "name": "phpstan/phpstan-symfony", @@ -187,10 +182,10 @@ "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [], + "platform": {}, + "platform-dev": {}, "plugin-api-version": "2.6.0" } From 2fb72e8eb22d12bc588bd0aa7b8a52eac015d6e6 Mon Sep 17 00:00:00 2001 From: rflavien Date: Wed, 25 Feb 2026 16:01:54 +0100 Subject: [PATCH 3/3] update phpstan --- tools/phpstan/composer.lock | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/tools/phpstan/composer.lock b/tools/phpstan/composer.lock index 8a8a54d..2562dc8 100644 --- a/tools/phpstan/composer.lock +++ b/tools/phpstan/composer.lock @@ -109,32 +109,32 @@ }, { "name": "phpstan/phpstan-symfony", - "version": "2.0.2", + "version": "2.0.14", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-symfony.git", - "reference": "65f02c7e585f3c7372e42e14d3d87da034031553" + "reference": "678136545a552a33b07f1a59a013f76df286cc34" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/65f02c7e585f3c7372e42e14d3d87da034031553", - "reference": "65f02c7e585f3c7372e42e14d3d87da034031553", + "url": "https://api.github.com/repos/phpstan/phpstan-symfony/zipball/678136545a552a33b07f1a59a013f76df286cc34", + "reference": "678136545a552a33b07f1a59a013f76df286cc34", "shasum": "" }, "require": { "ext-simplexml": "*", "php": "^7.4 || ^8.0", - "phpstan/phpstan": "^2.1.2" + "phpstan/phpstan": "^2.1.13" }, "conflict": { "symfony/framework-bundle": "<3.0" }, "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-phpunit": "^2.0.8", "phpstan/phpstan-strict-rules": "^2.0", "phpunit/phpunit": "^9.6", - "psr/container": "1.0 || 1.1.1", + "psr/container": "1.1.2", "symfony/config": "^5.4 || ^6.1", "symfony/console": "^5.4 || ^6.1", "symfony/dependency-injection": "^5.4 || ^6.1", @@ -172,11 +172,14 @@ } ], "description": "Symfony Framework extensions and rules for PHPStan", + "keywords": [ + "static analysis" + ], "support": { "issues": "https://github.com/phpstan/phpstan-symfony/issues", - "source": "https://github.com/phpstan/phpstan-symfony/tree/2.0.2" + "source": "https://github.com/phpstan/phpstan-symfony/tree/2.0.14" }, - "time": "2025-01-21T18:57:07+00:00" + "time": "2026-02-11T12:27:30+00:00" } ], "packages-dev": [],