|
|
|
|
|
by Capricorn2481
864 days ago
|
|
This is just intellectually dishonest. It completely depends on whether your libraries have breaking changes and how your app is structured. Many legacy projects use old versions of ORMs and frameworks that don't support PHP 8. So now you're also upgrading code igniter and you're looking at hundreds of files that call it's ORM |
|
And your example, codeigniter, is one of the worst examples in PHP.
Not only it is a framework that has minor usage: https://trends.google.com/trends/explore?q=codeigniter,larav...
It is infamous for being hard to upgrade. No responsible PHP developer would start a complex project in it today.
A typical PHP project in the last years use either Laravel or Symfony.
Not to mention PHP has mature tooling to perform automated code upgrade between versions: https://github.com/rectorphp/rector
The project I mentioned was 4 years old and so far no code change was required between PHP 7.2 and PHP 8.3.
And again, my parent was clearly talking about server upgrade: "was alway easier just to build a new server".
And the change I had to do was not even multiple lines, it was a single line in a Dockerfile. I found the Pull Request and it was from 7.4 to 8.3:
https://i.imgur.com/MmemYSp.png