Skip to content

Handle cakephp 5.3 deprecations#580

Merged
cnizzardini merged 5 commits intomasterfrom
cakephp5.3-deprecations
Feb 15, 2026
Merged

Handle cakephp 5.3 deprecations#580
cnizzardini merged 5 commits intomasterfrom
cakephp5.3-deprecations

Conversation

@cnizzardini
Copy link
Copy Markdown
Owner

@cnizzardini cnizzardini commented Feb 14, 2026

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 SwaggerBakePlugin and simplify an event listener to avoid an unused variable.
  • Update deprecated ExceptionResponse::fallback() signature and adjust PHPMD configuration.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 SwaggerBakePlugin and 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.

Comment thread phpmd.xml Outdated
@cnizzardini cnizzardini merged commit e52c954 into master Feb 15, 2026
5 checks passed
@cnizzardini cnizzardini deleted the cakephp5.3-deprecations branch February 15, 2026 15:51
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