mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
[RFC] Deprecate ReflectionProperty::getDefaultValue() without default (#19457)
https://wiki.php.net/rfc/deprecations_php_8_5
This commit is contained in:
parent
ffdc1044c9
commit
57a88b216c
3 changed files with 22 additions and 3 deletions
|
@ -24,11 +24,13 @@ var_dump($r->hasDefaultValue());
|
|||
var_dump($r->getDefaultValue());
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECTF--
|
||||
Pre-test
|
||||
Setting
|
||||
Constructor
|
||||
Getting
|
||||
Setting
|
||||
bool(false)
|
||||
|
||||
Deprecated: ReflectionProperty::getDefaultValue() for a property without a default value is deprecated, use ReflectionProperty::hasDefaultValue() to check if the default value exists in %s on line %d
|
||||
NULL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue