Nullable return types in PHP7
PHP 7 introduces return type declarations. Which means I can now indicate the return value is a certain class, interface, array, callable or one of the newly hintable scalar types, as is possible for function parameters. function returnHello(): string { return ‘hello’; } Often it happens that a value is not always present, and that … Read more