File tree Expand file tree Collapse file tree
PHPCompatibilitySymfonyPolyfillPHP74
PHPCompatibilitySymfonyPolyfillPHP83
PHPCompatibilitySymfonyPolyfillPHP85 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 <exclude-pattern >/polyfill[_-]php74/Php74\.php$</exclude-pattern >
2222 </rule >
2323
24+ <!-- Version toggle present. See: https://github.com/symfony/polyfill/pull/640 -->
25+ <rule ref =" PHPCompatibility.Classes.NewClasses.valueerrorFound" >
26+ <exclude-pattern >/polyfill[_-]php74/Php74\.php$</exclude-pattern >
27+ </rule >
28+
2429</ruleset >
Original file line number Diff line number Diff line change 1515 <exclude name =" PHPCompatibility.FunctionUse.NewFunctions.ldap_exop_syncFound" />
1616 <exclude name =" PHPCompatibility.FunctionUse.NewFunctions.ldap_connect_walletFound" />
1717
18+ <!-- This is a PHP 8.0 feature, but is polyfilled in the PHP 8.3 package to polyfill certain PHP 8.3 features properly. -->
19+ <!-- See: https://github.com/symfony/polyfill/pull/637 -->
20+ <exclude name =" PHPCompatibility.Classes.NewClasses.valueerrorFound" />
21+
1822 <!-- https://github.com/symfony/polyfill-php83/tree/1.x/Resources/stubs -->
1923 <!--
2024 Detection for the Override attribute is incomplete in PHPCompatibility 10.0.0-alpha1.
7983 <exclude-pattern >/polyfill-php83/bootstrap81\.php$</exclude-pattern >
8084 </rule >
8185
82- <!-- Version toggle present. See: https://github.com/symfony/polyfill/pull/501 -->
83- <rule ref =" PHPCompatibility.Classes.NewClasses.valueerrorFound" >
84- <exclude-pattern >/polyfill-php83/Php83\.php$</exclude-pattern >
85- </rule >
86-
8786 <!-- See: https://github.com/symfony/polyfill/pull/594 -->
8887 <rule ref =" PHPCompatibility.FunctionUse.NewFunctionParameters.ldap_exop_controlsFound" >
8988 <exclude-pattern >/polyfill-php83/bootstrap\.php$</exclude-pattern >
Original file line number Diff line number Diff line change 1212 <exclude name =" PHPCompatibility.FunctionUse.NewFunctions.locale_is_right_to_leftFound" />
1313 <exclude name =" PHPCompatibility.FunctionUse.NewFunctions.grapheme_levenshteinFound" />
1414
15+ <!-- This is a PHP 8.0 feature, but is polyfilled in the PHP 8.3 package to polyfill certain PHP 8.3 features properly. -->
16+ <!-- See: https://github.com/symfony/polyfill/pull/637 -->
17+ <exclude name =" PHPCompatibility.Classes.NewClasses.valueerrorFound" />
18+
1519 <!-- https://github.com/symfony/polyfill-php85/tree/1.x/Resources/stubs -->
1620 <!--
1721 Detection for the DelayedTargetValidation and NoDiscard attributes is incomplete in PHPCompatibility 10.0.0-alpha1.
4852 <exclude-pattern >/polyfill-php85/bootstrap80\.php$</exclude-pattern >
4953 </rule >
5054
51- <!--
52- Not a false positive, but a bug in the Symfony PHP 8.5 polyfill package.
53- Bug has been reported: ...
54- Temporarily silencing the error as this needs to be solved upstream.
55- -->
56- <rule ref =" PHPCompatibility.Classes.NewClasses.valueerrorFound" >
57- <exclude-pattern >/polyfill-php85/Php85\.php$</exclude-pattern >
58- </rule >
59-
6055</ruleset >
Original file line number Diff line number Diff line change @@ -24,3 +24,5 @@ class Foo extends DateError {}
2424} catch (DateObjectError | DateRangeError $ e ) {
2525} catch (SQLite3Exception $ e ) {
2626}
27+
28+ throw new ValueError ();
Original file line number Diff line number Diff line change @@ -21,3 +21,5 @@ function dummy() {}
2121
2222locale_is_right_to_left ($ locale );
2323grapheme_levenshtein ( $ s1 , $ s2 );
24+
25+ throw new ValueError ();
You can’t perform that action at this time.
0 commit comments