Handle cakephp 5.3 deprecations#580
Merged
cnizzardini merged 5 commits intomasterfrom Feb 15, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates SwaggerBake to address CakePHP 5.3 deprecations by adjusting plugin/bootstrap conventions and replacing deprecated API usage in test and extension code.
Changes:
- Update FriendsOfCake/Search usage to call
searchManager()via the Search behavior instance. - Rename the plugin entry class to
SwaggerBakePluginand simplify an event listener to avoid an unused variable. - Update deprecated
ExceptionResponse::fallback()signature and adjust PHPMD configuration.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/test_app/src/Model/Table/EmployeesTable.php | Replaces deprecated searchManager() table proxy with behavior-based call. |
| src/SwaggerBakePlugin.php | Renames plugin class to follow CakePHP 5.3 plugin class naming expectations. |
| src/Lib/Operation/ExceptionResponse.php | Updates deprecated fallback helper usage/signature. |
| src/Lib/Extension/CakeSearch/Extension.php | Removes unused variable assignment in event listener callback. |
| phpmd.xml | Changes unused code ruleset configuration to exclude UnusedPrivateField. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
This PR updates SwaggerBake to address CakePHP 5.3 deprecations by adjusting plugin/bootstrap conventions and replacing deprecated API usage in test and extension code.
Changes:
searchManager()via the Search behavior instance.SwaggerBakePluginand simplify an event listener to avoid an unused variable.ExceptionResponse::fallback()signature and adjust PHPMD configuration.