The Advantage of Fixing All PHP Warnings

The Advantage of Fixing All PHP Warnings

The Advantage of Fixing All PHP Warnings I have spent a ungodly amount of my life reading other people’s PHP warnings. Scanning codebases for a living does that to you. And after a few million lines, I’ve come to a conclusion that sounds boring until you think about what it actually means: a warning is […]

The Secret Life of “Magic Null” in PHP

The Secret Life of "Magic Null" in PHP

The Secret Life of “Magic Null” in PHP PHP 8 has started a tightening in native functions arguments: every version brings stricter checks on calls to common functions. Gone are the days of passing null into a function expecting an integer and hoping for the best. Today, usort($arr, null) or array_walk($arr, null) will instantly crash […]

Calling All Ancestors

Calling All Ancestors

PHP Inheritance Challenge: Calling All Ancestors PHP’s object-oriented features are exhaustive and modern, yet sometimes life send you a little challenge: who doesn’t like a surprise? Today we’ll look at a rare inheritance puzzle. In this post, we are calling all ancestors in a class hierarchy. We start with three classes, extending each other in […]