Skip to content

Commit 38be7a2

Browse files
Coding Standards: Add specific sniff exclusions for serialize functions in sodium_compat.
These are necessary for a passing PHP Compatibility scan. Follow-up to [47735], [60787]. See #64008. git-svn-id: https://develop.svn.wordpress.org/trunk@60795 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 3c3852e commit 38be7a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

phpcompat.xml.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,11 @@
8585
<rule ref="PHPCompatibility.FunctionUse.NewFunctions.sodium_unpadFound">
8686
<exclude-pattern>/sodium_compat/src/Compat\.php$</exclude-pattern>
8787
</rule>
88+
<rule ref="PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__serializeFound">
89+
<exclude-pattern>/sodium_compat/src/PHP52/SplFixedArray\.php$</exclude-pattern>
90+
</rule>
91+
<rule ref="PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound">
92+
<exclude-pattern>/sodium_compat/src/PHP52/SplFixedArray\.php$</exclude-pattern>
93+
</rule>
8894

8995
</ruleset>

0 commit comments

Comments
 (0)