Skip to content

Commit

Permalink
Merge branch '6.4' into 7.0
Browse files Browse the repository at this point in the history
* 6.4:
  Updated the code example
  __isset() returns true only if values are present
  • Loading branch information
javiereguiluz committed Jun 10, 2024
2 parents d68adfb + 8da0e89 commit f48638a
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 @@ -252,7 +252,7 @@ The ``getValue()`` method can also use the magic ``__get()`` method::

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

Expand Down

0 comments on commit f48638a

Please sign in to comment.