From 6499ee1444eef33fb05ca323a02c479d2bdf2070 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 21 Jun 2026 22:15:43 +0200 Subject: [PATCH] PHP 8.5 polyfill: update the ruleset for Filter exception classes / sync with v1.34.0 As of version v1.34.0, the Filter exception classes as introduced in PHP 8.5 are now included in the Symfony polyfill. Ref: * symfony/polyfill 557 * https://github.com/symfony/polyfill/commit/a15aef4592827a577d9008c2da2ada64c4cf4fa3 --- PHPCompatibilitySymfonyPolyfillPHP85/ruleset.xml | 6 ++++++ Test/SymfonyPolyfillPHP85Test.php | 3 +++ 2 files changed, 9 insertions(+) diff --git a/PHPCompatibilitySymfonyPolyfillPHP85/ruleset.xml b/PHPCompatibilitySymfonyPolyfillPHP85/ruleset.xml index 4e4643e..f2d49ef 100644 --- a/PHPCompatibilitySymfonyPolyfillPHP85/ruleset.xml +++ b/PHPCompatibilitySymfonyPolyfillPHP85/ruleset.xml @@ -15,6 +15,8 @@ Detection for the DelayedTargetValidation and NoDiscard attributes is incomplete in PHPCompatibility 10.0.0-alpha1. This section should be filled out once the detection implementation is known. --> + + @@ -27,6 +29,10 @@ /polyfill-php85/Resources/stubs/NoDiscard\.php$ + + /polyfill-php85/Resources/stubs/Filter/Filter*Exception\.php$ + + /polyfill-php85/Resources/stubs/NoDiscard\.php$ diff --git a/Test/SymfonyPolyfillPHP85Test.php b/Test/SymfonyPolyfillPHP85Test.php index 2a4a2d9..6520a6b 100644 --- a/Test/SymfonyPolyfillPHP85Test.php +++ b/Test/SymfonyPolyfillPHP85Test.php @@ -15,3 +15,6 @@ #[NoDiscard] function dummy() {} */ + +try { +} catch (Filter\FilterException | Filter\FilterFailedException $e) {}