Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PersonalHomePage's avatar

platform upgrade and its impact

Hey guys, I'm trying to update my PHP version from 7.2 to PHP 8.0... when i run composer why-not php 8 I get 57 packages that show up requiring updates and if I run composer update --ignore-platform-reqs it seems to work so I don't have to upgrade those packages, but I don't know how I can tell if this will introduce breaking changes. The application seems to be working and unfortunately we have no tests to check everything so idk what to do here... any suggestions?

0 likes
4 replies
Sinnbeck's avatar

Personally I would spend the time upgrading. I just upgraded my own main app from laravel 8 to 9. I had to replace a few packages but it only took a few hours.

My own workflow is to try upgrading. If composer complains of a package I remove it from composer.json and try again. I keep a list of those I removed. At some point laravel will upgrade without error. I then add the packages back in using composer require package/name. I check each package that needs a major version upgrade for breaking changes. Once all packages are added back and you have followed the upgrade guide, you are done

2 likes
sr57's avatar

The application seems to be working and unfortunately we have no tests to check

How do you know that everything was Ok before update?

1 like

Please or to participate in this conversation.