diff --git a/components/property_access.rst b/components/property_access.rst index 953a05bff47..a51f6034145 100644 --- a/components/property_access.rst +++ b/components/property_access.rst @@ -207,7 +207,7 @@ The ``getValue()`` method can also use the magic ``__get()`` method:: public function __isset($id): bool { - return true; + return array_key_exists($id, $this->children); } }