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

murze.be:
★ The value of the void typehint in PHP
Oct 11, 2019 @ 14:00:02

When the void typehint was introduced in PHP 7.1. There was some debate about it. Some people wondered if it is beneficial to type nothing? I was one of them. Meanwhile, I changed my opinion on it. In this short post, I'd like to give you a small example where I think void shines.

This is the exa...

tagged:

Link: https://freek.dev/1481-the-value-of-the-void-typehint-in-php


Trending Topics: