Skip to content

Commit 95ed17e

Browse files
committed
Merge branch '7.1' into 7.2
* 7.1: Updated the code example __isset() returns true only if values are present
2 parents c0e4463 + 667bc66 commit 95ed17e

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
@@ -252,7 +252,7 @@ The ``getValue()`` method can also use the magic ``__get()`` method::
252252

253253
public function __isset($id): bool
254254
{
255-
return true;
255+
return isset($this->children[$id]);
256256
}
257257
}
258258

0 commit comments

Comments
 (0)