Skip to content

Commit 8da0e89

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: Updated the code example __isset() returns true only if values are present
2 parents 928e2ce + 9472a54 commit 8da0e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/property_access.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ The ``getValue()`` method can also use the magic ``__get()`` method::
261261

262262
public function __isset($id): bool
263263
{
264-
return true;
264+
return isset($this->children[$id]);
265265
}
266266
}
267267

0 commit comments

Comments
 (0)