Skip to content

Upgrade application to CakePHP 6 - #184

Open
josbeir wants to merge 4 commits into
masterfrom
upgrade/cakephp-6
Open

josbeir wants to merge 4 commits into
masterfrom
upgrade/cakephp-6

Conversation

@josbeir

@josbeir josbeir commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Upgrade the application and its plugins to CakePHP 6 development branches while preserving the catalogue, publisher directory, administration and authentication flows.

  • Include the latest master, including Composer keyword discovery and the CI action updates.
  • Refresh CakePHP 6 to 66515f0653ff26a6d0e74c750b412aeb9813bf51, Migrations to 716405e68124d42ba749e0fe201cafc500411db7, and PHPStan to 2.3.6.
  • Discover controller Route attributes from Application::routes() and remove config/routes.php. Use a single route for sitemap GET/HEAD requests.
  • Register the GitHub membership listener through event attributes and native container autowiring. Cache attribute metadata with PhpEngine.
  • Adapt commands, entities, ORM expressions and tests to CakePHP 6 APIs, including keyword entity patching, query expressions and the Search plugin's renamed filter methods.
  • Keep existing cache keys and clear incompatible catalogue/schema entries in the deployment release hook.
  • Configure DDEV's native MariaDB driver. Migrations uses dev-fix/6.x-php85-ci for MariaDB adapter support.

Validation:

  • PHPUnit against MySQL 8.4 and DDEV MariaDB 10.11: 277 tests, 2,005 assertions; four pre-existing incomplete tests, no failures, warnings or deprecations.
  • CI runs PHPUnit against both MySQL 9.6 and MariaDB 10.11. JSON persistence assertions allow database-specific object key ordering while preserving value types.
  • 71 browser tests passed, including keyword search and navigation.
  • PHPStan level 8, PHPCS, Rector dry run, Composer validation, platform requirements and frontend build passed.

This upgrade depends on unreleased CakePHP 6 and compatible plugin branches.

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.

1 participant