PHP 7.1: Void return types in functions and methods

Photo by Adam Omelak's Blog - IT Books Reviews and Programming

Learn what is `void` and why you should be using it in your new PHP 7.1 codebase. Discover advantages of using nullable types for your methods and functions.
Find out what are acceptable calls and which will result in Fatal Errors being thrown. Start to write better and more readable code without PHPDocs.

"Since PHP 7.1 we can start to see a real good progress with void return types. We can now specify a null type of returned value from a function. Sometimes we may want to specify the function which sho..."

Read more on the site

View Article

More info
#1st in TOP Web design articles
Level Junior


Added by: Adam
Report article