-
Notifications
You must be signed in to change notification settings - Fork 8k
[RFC] Deprecate ReflectionProperty::getDefaultValue() without default #19457
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
[RFC] Deprecate ReflectionProperty::getDefaultValue() without default #19457
Conversation
|
To avoid merge conflicts, NEWS/UPGRADING will be sent once this is approved |
|
The exception if checks just add noise to the code, you return anyway so you might as well drop them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as #19456 (review) (Niels also noted this).
2c9d3ce to
3c1e8e4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for suggestion.
3c1e8e4 to
7da07bf
Compare
Calling `ReflectionProperty::getDefaultValue()` on a property without a default value is deprecated since PHP v8.5 [1]. The method is now only called if the property actually contains a default value. [1]: php/php-src#19457
Calling `ReflectionProperty::getDefaultValue()` on a property without a default value is deprecated since PHP v8.5 [1]. The method is now only called if the property actually contains a default value. [1]: php/php-src#19457
Calling `ReflectionProperty::getDefaultValue()` on a property without a default value is deprecated since PHP v8.5 [1]. The method is now only called if the property actually contains a default value. [1]: php/php-src#19457
https://wiki.php.net/rfc/deprecations_php_8_5