From b42fd6435ef74debb659705b69698e3887fc4581 Mon Sep 17 00:00:00 2001 From: Peter Fisher Date: Thu, 7 Dec 2017 15:49:19 +0000 Subject: [PATCH] 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 --- doc/advanced.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/advanced.rst b/doc/advanced.rst index d86db501e..fadc947bb 100644 --- a/doc/advanced.rst +++ b/doc/advanced.rst @@ -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); } }