We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I just noticed a very minor mistake in the example code at https://www.php.net/releases/8.4/en.php
In the first example, the property hooks, on the right side it shows:
get => \sprintf("%s_%s", $this->languageCode, $this->countryCode); set (string $value) { [$this->countryCode, $this->languageCode] = explode('_', $value, 2); }
The get assumes languageCode comes first, but the set expects countryCode as first item.
get
languageCode
set
countryCode
It should be the other way around for the setter, as the country code is at the end.
Greetings Sani
The text was updated successfully, but these errors were encountered:
b7b728e
@nitori thanks!
Sorry, something went wrong.
No branches or pull requests
Hi,
I just noticed a very minor mistake in the example code at
https://www.php.net/releases/8.4/en.php
In the first example, the property hooks, on the right side it shows:
The
get
assumeslanguageCode
comes first, but theset
expectscountryCode
as first item.It should be the other way around for the setter, as the country code is at the end.
Greetings
Sani
The text was updated successfully, but these errors were encountered: