You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP 7 adds support for return type declarations. Similarly to argument type declarations, return type declarations specify the type of the value that will be returned from a function. The same types are available for return type declarations as are available for argument type declarations.
Personally I don't think they're needed and one may as well chuck them out to achieve greater compatibility; however if they are there it would be nicer to require PHP 7+ in the composer.json.
The text was updated successfully, but these errors were encountered:
http://php.net/manual/en/functions.returning-values.php
Personally I don't think they're needed and one may as well chuck them out to achieve greater compatibility; however if they are there it would be nicer to require PHP 7+ in the
composer.json
.The text was updated successfully, but these errors were encountered: