A clear walkthrough of how PHP closures implicitly capture $this, even when they don’t use it, and how that can prevent objects from being garbage collected. Also covers what PHP 8.6 will change with automatic static inference.
PHP
Our hackathon project: Live at Spatie
At our latest hackathon, we built Live at Spatie, a Laravel and React wrapper around Owntone that lets the whole team queue music, see what’s playing, and control the office speakers. The nicest touch is Read more…