|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-02-27 08:18 UTC] krakjoe@php.net
[2019-02-27 08:18 UTC] krakjoe@php.net
-Status: Open
+Status: Closed
[2019-02-27 08:18 UTC] krakjoe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 19:00:01 2025 UTC |
Description: ------------ ReflectionClass#getDefaultProperties() produces an array with an invisible property when used in combination with typed properties Test script: --------------- <?php class A { public B $c; } $class = new ReflectionClass(A::class); $defaults = $class->getDefaultProperties(); var_dump($defaults); var_dump(array_key_exists('c', $defaults)); Expected result: ---------------- array(0) { } bool(false) Actual result: -------------- array(1) { } bool(true)