Static analysis tools like PHPStan allow PHP developers to create new language features.

I gave a talk at PHPCon about how I added C++'s friend keyword to PHP: https://www.youtube.com/watch?v=Bzs34YrRO14

Also check out other language extensions: https://github.com/DaveLiddament/php-language-extensions

Comments