A child class overriding a method had to declare exactly the parent’s return type, so a factory interface could not promise that each implementation returns its own concrete…
array_column has worked on objects since 7.0, and it reads properties rather than calling getters — so it silently returns nothing for a well-encapsulated class. It does respect…
The TTL argument was minutes for years and became seconds in 5.8, which means every existing call now expires sixty times sooner and nothing warns about it. This…
The return expression is evaluated before finally executes, but the value is not handed to the caller until afterwards — which means a finally that returns wins, silently.…
Since 7.2 count() warns on anything that is not an array or Countable, and the guard everybody wrote by hand is now in the standard library. A generator…
Implementing ArrayAccess so a class can be used with square brackets makes it look like an array to every reader and to no static analyser. The interface predates…
With validate_timestamps off, PHP never notices a changed file — which is the point, and which means a deploy that does not clear the cache serves the previous…