From aa42227d536caf2e53724e451b5c698753e74e05 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 30 May 2024 08:05:27 +0200 Subject: [PATCH] __isset() returns true only if values are present --- components/property_access.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }