Archive
deprecations
-
Enums replaced forty class constants
PHP 8.1 shipped on 25 November. A status class holding 41 constants, a static validator and a switch with a throwing default became one backed enum, and Doctrine still needed thirty lines of custom type to store it.
-
PHP 7.1 in a codebase that still remembers 5.3
PHP 7.1 shipped on 1 December. Nullable types and iterable let me delete guard clauses across 31 functions. ArgumentCountError cost a day and a rollback, and the mcrypt deprecation is a backfill, not a rename.
-
Symfony 2.8 or 3.0, and why we picked the boring one
Two versions shipped in November 2015 with the same features, and the only real difference is which deprecated code is still there. Here is how the support dates, not the code, decided it for our back office.
-
Symfony 2.7 LTS: deprecations first, upgrade second
Moving the ERP from Symfony 2.3 to the 2.7 long-term-support release. What LTS actually promises, the 187 deprecation notices on our first page load, and the form and security changes behind them.