Skip to content

v2.7.0

Choose a tag to compare

@github-actions github-actions released this 19 Apr 14:52
550688e

Added

  • Apermo.Commenting.DocCommentDescription sniff: replaces
    Generic.Commenting.DocComment.MissingShort with support
    for @see and @phpstan-ignore(-next-line) as valid first
    content in doc comments.
  • Project configuration guide in README with required
    phpcs.xml properties (text_domain, prefixes,
    minimum_wp_version) and a phpcs.xml.dist.example file.

Changed

  • Removed Universal.UseStatements.DisallowUseFunction.
    use function imports are now allowed, resolving the
    catch-22 where namespaced functions could neither be
    imported nor called via FQN. Global function handling
    is unaffected (GlobalFunctionQualification still
    enforces backslash for native PHP functions).

Fixed

  • SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly
    no longer fires in files without a namespace declaration.
    FQN like \Throwable or \RuntimeException are valid
    in no-namespace files where use statements are pointless.