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) {}