mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 10:26:32 +00:00
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
This commit is contained in:
committed by
Fabien Potencier
parent
5322c9b4ca
commit
b42fd6435e
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user