Skip to content

Commit

Permalink
bug #4522 Add missing brackets to PropertyAccessor examples (loonytoons)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.5 branch.

Discussion
----------

Add missing brackets to PropertyAccessor examples

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.5+
| Fixed tickets | none

Commits
-------

d6b4795 Add missing brackets to PropertyAccessor examples
  • Loading branch information
wouterj committed Nov 28, 2014
2 parents 58c0baf + d6b4795 commit e96ebd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/property_access/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ instead::

$person = new Person();

if ($accessor->isReadable($person, 'firstName') {
if ($accessor->isReadable($person, 'firstName')) {
// ...
}

Expand All @@ -338,7 +338,7 @@ method to find out whether a property path can be updated::

$person = new Person();

if ($accessor->isWritable($person, 'firstName') {
if ($accessor->isWritable($person, 'firstName')) {
// ...
}

Expand Down

0 comments on commit e96ebd3

Please sign in to comment.