Skip to content

Commit 431d366

Browse files
committed
PHP 7.3 polyfill: Update the ruleset
A polyfill for the `JsonException` class was added in v 1.11.0 of the `polyfill-php73` package. Ref: * symfony/polyfill-php73@d1fb4ab
1 parent eb35a0c commit 431d366

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

PHPCompatibilitySymfonyPolyfillPHP73/ruleset.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<exclude name="PHPCompatibility.FunctionUse.NewFunctions.array_key_lastFound"/>
99
<exclude name="PHPCompatibility.FunctionUse.NewFunctions.hrtimeFound"/>
1010
<exclude name="PHPCompatibility.FunctionUse.NewFunctions.is_countableFound"/>
11+
<exclude name="PHPCompatibility.Classes.NewClasses.jsonexceptionFound"/>
1112
</rule>
1213

1314
</ruleset>

Test/SymfonyPolyfillPHP73Test.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
if ( is_countable( $abc ) ) {
66
$a = hrtime() ? array_key_first() : array_key_last();
77
}
8+
9+
class MyException extends JsonException {}

0 commit comments

Comments
 (0)