-
Notifications
You must be signed in to change notification settings - Fork 33
Prepare for CakePHP 5.x #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- TestListenerTrait is used by Cake\TestSuite\Fixture\FixtureInjector; but - It's removed in CakePHP 5.0.0 and will no longer throw deprecations.
phpunit constraints need to be updated to |
@ADmad Thank you. I can't use phpunit 10+ with Cake 4.6 so I assume I should just do the full Cake 5 upgrade in this PR rather than separating the process into two separate ones? |
Oh, I assumed this was upgrade to Cake 5 since you dropped PHP 7.4 in CI. |
Originally I was going to do the full upgrade to Cake 5 in a single PR, then I thought I would separate the work into two separate PRs. Now I think I will return to the original idea and do the full upgrade to Cake 5 here. |
- cakephp/cakephp:^5.0.0 - friendsofcake/crud:^7.0.0 - phpunit/phpunit:^10.5.5 || ^11.1.3 || ^12.0.9 - friendsofcake/cakephp-test-utilities:^3.0.0 - friendsofcake/search:^7.0.0 - cakephp/cakephp-codesniffer:^5.1 - dms/phpunit-arraysubset-asserts:^0.5.0
The |
I'll need help getting the coding standard and static analysis tests passing because code sniffer wants to add typehints that break inheritance requirements. Regarding phpstan, it seems it doesn't like the magic |
"laravel-json-api/neomerx-json-api": "^5.0" | ||
"php": ">=8.1.0", | ||
"cakephp/cakephp": "^5.0.0", | ||
"friendsofcake/crud": "^7.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this ok? It seems needed due to this change:
Can I help with anything else or is this finished now? |
Preparation PR that removes deprecations for upgrading to CakePHP 5.0.0.