Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return Types (Require PHP 7+) #1

Closed
lloy0076 opened this issue May 26, 2017 · 1 comment
Closed

Return Types (Require PHP 7+) #1

lloy0076 opened this issue May 26, 2017 · 1 comment

Comments

@lloy0076
Copy link

http://php.net/manual/en/functions.returning-values.php

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.

@OwenMelbz
Copy link
Owner

Ha was just playing about, but have removed them for now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants