Skip to content

Commit

Permalink
minor twigphp#2598 Update advanced.rst (pfwd)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes twigphp#2598).

Discussion
----------

Update advanced.rst

I noticed that the rot13Provider wasn't called correctly as it was trying to access a local variable instead of calling $this

Commits
-------

b42fd64 Update advanced.rst
  • Loading branch information
fabpot committed Dec 7, 2017
2 parents 5322c9b + b42fd64 commit b36e3eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ The simplest way to use methods is to define them on the extension itself::

public function rot13($value)
{
return $rot13Provider->rot13($value);
return $this->rot13Provider->rot13($value);
}
}

Expand Down Expand Up @@ -849,7 +849,7 @@ It is now possible to move the runtime logic to a new

public function rot13($value)
{
return $rot13Provider->rot13($value);
return $this->rot13Provider->rot13($value);
}
}

Expand Down

0 comments on commit b36e3eb

Please sign in to comment.