Skip to content

v2.6.1

Choose a tag to compare

@github-actions github-actions released this 15 Mar 15:22
6f7c740

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.