Skip to content

v2.6.0

Choose a tag to compare

@github-actions github-actions released this 15 Mar 14:10
dd56c50

Added

  • Apermo.Operators.DisallowPreIncrementDecrement sniff:
    flags ++$var and --$var in favor of $var++ and
    $var--. Auto-fixable. Handles complex identifiers
    like $obj->prop, self::$var, and $arr['key'].
  • SlevomatCodingStandard.Operators.RequireOnlyStandaloneIncrementAndDecrementOperators:
    restricts ++/-- to standalone statements and
    loop contexts only.
  • SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly:
    force explicit use imports instead of inline FQN.
  • SlevomatCodingStandard.Namespaces.UseFromSameNamespace:
    prevent redundant use for same-namespace classes.
  • SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions:
    require \function_exists() in namespaced code.
  • SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants:
    require \PHP_VERSION in namespaced code.
  • ids added to MinimumVariableNameLength default
    allowlist. Common in WordPress for post/term/attachment
    ID collections.

Changed

  • Excluded Universal.Operators.DisallowStandalonePostIncrementDecrement
    from WordPress block. We enforce post-increment
    over pre-increment.