Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

murze.be:
Using the `self` return type got better in PHP 7.4
Dec 17, 2019 @ 13:30:02

Thanks to the improved type variance in PHP 7.4, the self return type hint is now safe to use in a class that you expect to be overridden (happens a lot in the packages we create)Demo: https://t.co/7vRTaOwRhDRFC: https://t.co/1RpnFIjlKC#php pic.twitter.com/SfAaxRDt4m— Freek Van der Herten (@f...

tagged:

Link: https://freek.dev/1521-using-the-self-return-type-got-better-in-php-74


Trending Topics: