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.
Read moreGet updates from Freek.dev - all blogposts via email, on your phone or read them on follow.it on your own custom news page.
You can filter the news from Freek.dev - all blogposts that get delivered to you using tags or topics or you can opt for all of them. Unsubscription is also very simple.
See the latest news from Freek.dev - all blogposts below.
Site title: Freek Van der Herten's blog on PHP, Laravel and JavaScript