Skip to content

Commit 9472a54

Browse files
committed
Updated the code example
1 parent d0bc8b3 commit 9472a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/property_access.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ The ``getValue()`` method can also use the magic ``__get()`` method::
207207

208208
public function __isset($id): bool
209209
{
210-
return array_key_exists($id, $this->children);
210+
return isset($this->children[$id]);
211211
}
212212
}
213213

0 commit comments

Comments
 (0)