# 4.0 Upgrade Issue

**URL:** <https://discourse.cakephp.org/t/4-0-upgrade-issue/9768>\
**Category:** Uncategorized\
**Created:** [October 4, 2021, 10:45am UTC](https://discourse.cakephp.org/t/4-0-upgrade-issue/9768 "2021-10-04T10:45:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![testerwebperfection](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@testerwebperfection](https://discourse.cakephp.org/u/testerwebperfection)\
**Post date:** [October 4, 2021, 10:45am UTC](https://discourse.cakephp.org/t/4-0-upgrade-issue/9768/1 "2021-10-04T10:45:55Z")

</div>

Hello

I am trying to update my CakePHP version 3.3.11 to 4.X but I am not able to update my CakePHP version.

When I am trying to run this command ( PHP composer.phar require --dev --update-with-dependencies “phpunit/phpunit:^8.0”  
)but I got some error Please Suggest me how can resolve this issue

Problem 1

- phpunit/phpunit[8.2.0, …, 8.5.21] require sebastian/diff ^3.0.2 → satisfiable by sebastian/diff[3.0.2, 3.0.3].
- phpunit/phpunit[8.0.0, …, 8.1.6] require sebastian/diff ^3.0 → satisfiable by sebastian/diff[3.0.0, 3.0.1, 3.0.2, 3.0.3].
- You can only install one version of a package, so only one of these can be installed: sebastian/diff[1.1.0, …, 1.4.3, 2.0.1, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 4.0.0, …, 4.0.4].
- rector/rector 0.10.20 requires sebastian/diff ^4.0.4 → satisfiable by sebastian/diff[4.0.4].
- rector/rector is locked to version 0.10.20 and an update of this package was not requested.
- Root composer.json requires phpunit/phpunit ^8.0 → satisfiable by phpunit/phpunit[8.0.0, …, 8.5.21].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [October 4, 2021, 6:18pm UTC](https://discourse.cakephp.org/t/4-0-upgrade-issue/9768/2 "2021-10-04T18:18:12Z")

</div>

you shouldn’t make that big of a jump.  
try upgrading one minor version at a time and fix the deprecation warnings along the way.  
When you reach 3.10 then go to 4.0, then 4.1 and finally 4.2

Besides there is a tool from dereuromark which helps you update all you dependencies at once.  
[https://toolbox.dereuromark.de/utilities/upgrade](https://toolbox.dereuromark.de/utilities/upgrade)

---

<div class="post-metadata">

**Author:** ![testerwebperfection](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@testerwebperfection](https://discourse.cakephp.org/u/testerwebperfection)\
**Post date:** [October 11, 2021, 5:09am UTC](https://discourse.cakephp.org/t/4-0-upgrade-issue/9768/3 "2021-10-11T05:09:20Z")

</div>

I have upgrade step by step now it is working.

Thank you
