From bc17912726564e8615a3675a03c4c393c194c8cd Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 22 Jun 2026 00:12:27 +0200 Subject: [PATCH] PHP 8.4 polyfill: update false positive prevention The PHP cross-version compatibility bug regarding the `Deprecated` attribute, which I previously reported to Symfony has been fixed. This commit updates the ruleset to allow for the fix and prevent false positives on the new code introduced. Refs: * symfony/polyfill 551 * symfony/polyfill 556 --- PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml b/PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml index 083de97..6becd33 100644 --- a/PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml +++ b/PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml @@ -39,9 +39,11 @@ /polyfill-php84/Php84\.php$ + /polyfill-php84/Resources/Deprecated\.php$ /polyfill-php84/Resources/stubs/Deprecated\.php$ + /polyfill-php84/Resources/Deprecated\.php$ /polyfill-php84/Resources/stubs/Deprecated\.php$ @@ -54,6 +56,7 @@ + /polyfill-php84/Resources/Deprecated\.php$ /polyfill-php84/Resources/stubs/Deprecated\.php$ @@ -74,13 +77,12 @@ /polyfill-php84/Php84\.php$ - + + /polyfill-php84/Resources/stubs/Deprecated\.php$ + + /polyfill-php84/Resources/Deprecated\.php$