Skip to content

Commit

Permalink
Updated the code example
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jun 10, 2024
1 parent d0bc8b3 commit 9472a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/property_access.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ The ``getValue()`` method can also use the magic ``__get()`` method::

public function __isset($id): bool
{
return array_key_exists($id, $this->children);
return isset($this->children[$id]);
}
}

Expand Down

0 comments on commit 9472a54

Please sign in to comment.