According to this page I tried to upgrade my CakePHP version to 4.5:
Running composer require --update-with-dependencies "cakephp/cakephp:^4.5"
results in:
./composer.json has been updated
Running composer update cakephp/cakephp --with-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires cakephp/cakephp ^4.5, found cakephp/cakephp[4.5.0-RC1, 4.x-dev] but it does not match your minimum-stability.
Problem 2
- friendsofcake/crud is locked to version 6.2.0 and an update of this package was not requested.
- friendsofcake/crud 6.2.0 requires cakephp/cakephp ^4.0 -> found cakephp/cakephp[4.0.0, ..., 4.4.17] but it conflicts with your root composer.json require (^4.5).
Problem 3
- maiconpinto/cakephp-adminlte-theme is locked to version 2.0.2 and an update of this package was not requested.
- maiconpinto/cakephp-adminlte-theme 2.0.2 requires cakephp/cakephp ^4.0 -> found cakephp/cakephp[4.0.0, ..., 4.4.17] but it conflicts with your root composer.json require (^4.5).
Problem 4
- cakephp/bake is locked to version 2.9.3 and an update of this package was not requested.
- cakephp/bake 2.9.3 requires cakephp/cakephp ^4.3.0 -> found cakephp/cakephp[4.3.0, ..., 4.4.17] but it conflicts with your root composer.json require (^4.5).
Problem 5
- cakephp/debug_kit is locked to version 4.9.4 and an update of this package was not requested.
- cakephp/debug_kit 4.9.4 requires cakephp/cakephp ^4.4.0 -> found cakephp/cakephp[4.4.0, ..., 4.4.17] but it conflicts with your root composer.json require (^4.5).
Problem 6
- laminas/laminas-httphandlerrunner[1.0.0, ..., 1.2.0] require php ^7.1 -> your php version (8.2.10) does not satisfy that requirement.
- laminas/laminas-httphandlerrunner[1.3.0, ..., 1.4.0] require php ^7.3 || ~8.0.0 -> your php version (8.2.10) does not satisfy that requirement.
- laminas/laminas-httphandlerrunner 1.5.0 requires php ^7.3 || ~8.0.0 || ~8.1.0 -> your php version (8.2.10) does not satisfy that requirement.
- cakephp/authentication 2.10.1 requires cakephp/http ^4.4 -> satisfiable by cakephp/http[4.4.0, ..., 4.4.17].
- cakephp/http[4.4.0, ..., 4.4.17] require laminas/laminas-httphandlerrunner ^1.0 -> satisfiable by laminas/laminas-httphandlerrunner[1.0.0, ..., 1.5.0].
- cakephp/authentication is locked to version 2.10.1 and an update of this package was not requested.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
OK, trying this
composer require --with-all-dependencies "cakephp/cakephp:^4.5"
results in
./composer.json has been created
Running composer update cakephp/cakephp --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires cakephp/cakephp ^4.5, found cakephp/cakephp[4.5.0-RC1, 4.x-dev] but it does not match your minimum-stability.
Installation failed, deleting ./composer.json.
I would like to upgrade to 4.5 so I can remove all deprecation messages, so I am prepared for CakePHP 5. How can I upgrade, what I have to modify?