Skip to content

v1.2.0

Choose a tag to compare

@apermo apermo released this 21 Feb 17:24
· 203 commits to main since this release
c936530

Added

  • Apermo.DataStructures.ArrayComplexity sniff: flags deeply nested or wide associative arrays that would benefit from typed objects
  • Apermo.WordPress.GlobalPostAccess sniff: flags global $post; inside functions, methods, closures, and arrow functions
  • Apermo.WordPress.ImplicitPostFunction sniff: flags WordPress template functions called without an explicit post argument inside function scopes

Changed

  • BREAKING: Apermo.WordPress.ImplicitPostFunction redesigned severity tiers. Severity is now based on the argument passed, not the function identity. New error codes: MissingArgument (error), NullArgument (error), IntegerArgument (warning), NoPostParameter (error). All codes are configurable via standard PHPCS <rule><type> overrides.

Removed

  • BREAKING: ImplicitPostFunction error codes DirectAccess and MissingPostParameter. Use MissingArgument, NullArgument, or IntegerArgument instead.