His expectation was that $param would be seen in the scope of the closure, just as it would be in Java Script. In PHP this isn’t the case, the use statement is required for this functionality.
Since closures were introduced in PHP, I’ve always had to keep it in mind that in PHP they’re “special” in the sense that the variables have to explicitly imported (with “use”) into the closure. Do I still sometimes forget? Of course! When every other language that I regularly use (that has closures) doesn’t have this requirement, it’s easy to forget. (: