Soft PHP MVC migrates from PHP 8.1 to 8.4 with automated refactoring across 108 files
The Soft PHP MVC framework has been migrated from PHP 8.1 to PHP 8.4, with the automated tool Rector refactoring 108 files to adopt modern language features such as the #[\Override] attribute, readonly properties, and constructor property promotion. The upgrade also required updating the full dependency graph, including major version jumps for libraries like illuminate/validation, nesbot/carbon, PHPUnit, and Symfony's var-dumper. One notable change involved the sendinblue/api-v3-sdk package, which was renamed to getbrevo/brevo-php with a completely different namespace, illustrating how third-party dependencies can shift identity between versions. The migration followed a disciplined, incremental strategy — updating one dependency at a time and running the full test suite after each change to isolate any breaking issues. The project argues that staying on PHP 8.1 in 2026 is not a stable choice but an abandoned one, as the ecosystem moves forward regardless of whether individual codebases follow.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in