Skip to content

Conversation

kevindecapite
Copy link
Contributor

Preparation PR that removes deprecations for upgrading to CakePHP 5.0.0.

@kevindecapite
Copy link
Contributor Author

@ADmad
Copy link
Member

ADmad commented Jun 27, 2025

phpunit constraints need to be updated to ^10.5.5 || ^11.1.3 || ^12.0.9 and codesniffer to ^5.1 to get the CI passing.

@kevindecapite
Copy link
Contributor Author

@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?

@ADmad
Copy link
Member

ADmad commented Jun 27, 2025

Oh, I assumed this was upgrade to Cake 5 since you dropped PHP 7.4 in CI.
The Cake 4 compatible version needs to keep PHP 7.4 support as the core does.

@kevindecapite
Copy link
Contributor Author

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.

@ADmad
Copy link
Member

ADmad commented Jun 30, 2025

The Static Analysis job is failing due to some psalm issue. We can just drop pslam and keep only phpstan.

@kevindecapite
Copy link
Contributor Author

kevindecapite commented Jun 30, 2025

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 serialize() and unserialize() methods.

"laravel-json-api/neomerx-json-api": "^5.0"
"php": ">=8.1.0",
"cakephp/cakephp": "^5.0.0",
"friendsofcake/crud": "^7.2.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kevindecapite
Copy link
Contributor Author

Can I help with anything else or is this finished now?

@ADmad ADmad merged commit 34075ca into FriendsOfCake:master Jul 2, 2025
7 checks passed
@kevindecapite kevindecapite deleted the issue-193 branch July 2, 2025 19:09
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