Skip to content

Commit d0bc8b3

Browse files
committed
minor #19922 [PropertyAccess] __isset() returns true only if values are present (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [PropertyAccess] __isset() returns true only if values are present Commits ------- aa42227 __isset() returns true only if values are present
2 parents 37f420a + aa42227 commit d0bc8b3

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 true;
210+
return array_key_exists($id, $this->children);
211211
}
212212
}
213213

0 commit comments

Comments
 (0)