Skip to content

release/4.0.2 - #69

Merged
iruzevic merged 1 commit into
mainfrom
release/4.0.2
May 27, 2026
Merged

release/4.0.2#69
iruzevic merged 1 commit into
mainfrom
release/4.0.2

Conversation

@iruzevic

Copy link
Copy Markdown

Description

Release 4.0.2 — internal tooling adjustments and cleanup. No new sniffs or ruleset changes affecting consumers.

Added

  • Added #[Override] attributes to FunctionCommentSniff::process() and HelpersEscapeSniff::process_token() to make parent overrides explicit on PHP 8.4.

Changed

  • Updated rector/rector dev dependency to ^2.4.5.
  • Updated Rector and PHPStan configuration to scan the whole project (with explicit excludes for vendor, vendor-prefixed, node_modules, eightshift, public, tests) instead of only the Eightshift directory.
  • Updated Rector config to skip RemoveUselessVarTagRector and enable withImportNames(importShortClasses: false, removeUnusedImports: true).
  • Updated phpcs.xml.dist.sample minimum_supported_wp_version example value to align with the supported PHP runtime.

Removed

  • Removed Prettier setup (.prettierrc, @prettier/plugin-php, prettier dev dependencies, and test:prettier / fix:prettier Composer scripts). The Prettier check added in 4.0.1 was reverted as it did not fit the PHPCS-driven workflow.

QA Guide

  1. Pull the branch and run composer install.
  2. Run the full suite: composer test.
  3. Verify all steps pass: test:rector, test:standards, test:types, test:unit, test:unit-checkcs, test:check-complete, test:check-complete-strict.
  4. Confirm composer.json no longer references test:prettier / fix:prettier and that .prettierrc, @prettier/plugin-php, and prettier are gone from package.json / bun.lock.
  5. Check that CHANGELOG.md has a new [4.0.2] entry with a corresponding compare link at the bottom.

Expected result: All composer scripts pass cleanly with no PHPCS, PHPStan, or Rector findings.

Screenshots / Videos

Linked documentation PR

@iruzevic iruzevic self-assigned this May 27, 2026
@iruzevic
iruzevic requested a review from a team May 27, 2026 13:54
@iruzevic iruzevic added the ai-assisted AI assisted label May 27, 2026
@iruzevic
iruzevic merged commit cda006e into main May 27, 2026
7 checks passed
@iruzevic
iruzevic deleted the release/4.0.2 branch May 27, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants