You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Apermo.Namespaces.GlobalFunctionQualification sniff:
requires \strlen() for PHP native functions (performance)
and prohibits \plugin_dir_path() for non-native functions
(testability). Auto-fixable. Only applies in namespaced code.
Changed
Replaced SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions
with Apermo.Namespaces.GlobalFunctionQualification.
The Slevomat rule was too broad — it required backslash on
all global functions including WordPress core functions.