Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  Updated the code example
  __isset() returns true only if values are present
  • Loading branch information
javiereguiluz committed Jun 10, 2024
2 parents 928e2ce + 9472a54 commit 8da0e89
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 @@ -261,7 +261,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 8da0e89

Please sign in to comment.