Repository navigation
Upgrade documentation generator dependencies and require PHP 8.2 - #350
Merged
Merged
Conversation
Update direct constraints and the lock file to current stable versions, requiring PHP 8.2 to match CakePHP 5.4 and the build runtime. Migrate PHPDoc Parser 2 initialization, ignore invalid return and var tags, and remove a duplicate Twig macro argument rejected by newer Twig. Apply CodeSniffer 5 formatting, add iconv to Docker, and cover PHPDoc parsing in CI. All 37 configured documentation releases and production-image HTTP checks pass.
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrade the generator's outdated direct dependencies and adapt the parser, templates, and build image so historical and current documentation still builds.
ParserConfigand initialize the parser objects once. Ignore malformed@returnand@vartags so native types remain available.iconvextension, and run new PHPDoc regression checks in CI.Evidence
typeargument inshowClassLikes; the updated dependency graph required an extension missing from the Docker image.After: The full Docker build generated all 37 configured documentation releases without parser warnings or fatal errors; production-image HTTP routing checks passed.
Merge Danger
Door: two-way
Revert the commit and redeploy to restore the previous dependency graph.
Blast Radius: documentation
Affects generator execution and formatting across all documentation releases. The generator now requires PHP 8.2 or newer; older CakePHP source remains supported through parsing without execution.