Skip to content

Prepare plugin for CakePHP 6 - #3

Merged
josbeir merged 1 commit into
mainfrom
cake6
Oct 12, 2026
Merged

josbeir merged 1 commit into
mainfrom
cake6

Conversation

@josbeir

@josbeir josbeir commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Prepare the plugin for the upcoming CakePHP 6 release, using its current PHP 8.5 requirement and development dependencies.

  • Require CakePHP 6, PHPUnit 13, and the CakePHP 6 coding standard; allow development dependencies while preferring stable versions.
  • Update the plugin application annotation for CakePHP 6, simplify the test bootstrap, and target PHP 8.5 in Rector.
  • Run CI on cake6 and pull requests with latest and lowest dependencies on PHP 8.5. Install the lowest-version validator before dependency resolution so it preserves the selected versions.
  • Document installation of dev-cake6 and add helper registry coverage for inline rendering.

Validation: latest and lowest dependency sets each pass 164 tests / 345 assertions. Line coverage is 96.44%. PHPStan, PHPCS, Rector, Composer validation, and the lowest-version validator pass. The validator reports the expected warning that CakePHP's development branch cannot represent an exact stable minimum version. A separate application installs the plugin successfully with the documented stability settings.

Also ran the local CakePHP upgrade tool's cakephp60 Rector rules against src, tests, and config; no additional changes were required. Validation used CakePHP 6.x-dev at 3e13a73 and Chronos 4.x-dev at e3ac64b. Chronos remains a transitive CakePHP dependency.

@codecov-commenter

codecov-commenter commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.92%. Comparing base (8603841) to head (7a441c8).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##               main       #3      +/-   ##
============================================
- Coverage     96.94%   96.92%   -0.02%     
  Complexity      186      186              
============================================
  Files            13       13              
  Lines           491      488       -3     
============================================
- Hits            476      473       -3     
  Misses           15       15              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@josbeir
josbeir merged commit b397de3 into main Oct 12, 2026
6 checks passed
@josbeir
josbeir deleted the cake6 branch October 12, 2026 18:26
@josbeir
josbeir restored the cake6 branch October 12, 2026 18:29
josbeir added a commit that referenced this pull request Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants