-
Notifications
You must be signed in to change notification settings - Fork 4
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
Named parameters are not available in any PHP 7 version #2
Comments
Hi flowl, thanks for your feedback! This is not a named parameter, it is valid PHP syntax to illustrate what kind of value should be passed to the |
Just pointing out, it works because of the order beeing correct, not because of the named parameters. While this works:
This doesn't:
|
@flowl Just a comment, but did you notice there is a trailing comma in your non-working example after "Jane Doe"? |
@ngolatka no, but it doesn't work with removed comma either because named parameters are coming in PHP 8 if they don't merge it in PHP 7.5 or 7.4 latest |
Named parameters like in
are not available in any PHP 7 version yet.
It is a feature planned for PHP 8 with people trying to backport it to PHP 7 but it has not yet been merged.
RFC: https://wiki.php.net/rfc/named_params
Merge request: php/php-src#5357
Version poc: https://3v4l.org/OoPIe
The text was updated successfully, but these errors were encountered: