The @expectedException annotation and setExpectedException() are both deprecated in favour of methods, which is more than a rename — the annotation asserted only that the exception was thrown…
PHP 7 made variable-variable expressions evaluate consistently left to right. That is an improvement and it silently changed the meaning of expressions that had been working for a…
The container resolves concrete classes automatically, which is convenient enough that most code type-hints the concrete class and the abstraction never happens. Contextual binding is the part worth…
Saving an order and publishing an event are two systems, and there is no transaction across them. Whichever order they happen in, a failure between them leaves the…
A file importing six classes from the same namespace repeats the namespace six times, which is noise that grows with the depth of the tree. It is purely…
The failure mode is not a slow query. It is one option holding a megabyte of serialised data, fetched and unserialised on every request, quietly adding both to…