Skip to content

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 19 Feb 22:49
· 0 commits to f8002a7ecf9fe772f8b921aae72196200b0dcd8f since this release

Added

  • Apermo.PHP.ForbiddenObjectCast sniff: warns on
    (object) casts that implicitly create stdClass
    instances. Use typed classes instead.
  • SlevomatCodingStandard.PHP.ForbiddenClasses config:
    warns on new \stdClass() usage. Use typed classes
    instead.
  • Apermo.Hooks.RequireHookDocBlock sniff: warns when
    WordPress hook invocations (do_action,
    apply_filters, etc.) lack a preceding PHPDoc block.
    Checks for @param and @return tags. Supports
    _ref_array and _deprecated variants.
  • Apermo.Formatting.ConsistentAssignmentAlignment
    sniff: warns when consecutive assignment statements
    mix single-space and aligned styles. Either all =
    operators align to the same column, or all use a
    single space — mixing is flagged.
  • Apermo.Arrays.ConsistentDoubleArrowAlignment sniff:
    warns when multi-line arrays mix single-space and
    aligned => styles. Same consistency rule as the
    assignment alignment sniff.

Changed

  • Exclusion comments for
    Generic.Formatting.MultipleStatementAlignment and
    WordPress.Arrays.MultipleStatementAlignment now say
    "Superseded by" the new Apermo alignment sniffs.