From 5ad91c82b45648795ce2e047aa19128fe3a5f11c Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 22 May 2024 10:44:41 +1200 Subject: [PATCH] DOC Update extension hook examples to be protected --- tests/unit/Stubs/RestfulServerTestExceptionThrown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/Stubs/RestfulServerTestExceptionThrown.php b/tests/unit/Stubs/RestfulServerTestExceptionThrown.php index a830d6a..1c7cc07 100644 --- a/tests/unit/Stubs/RestfulServerTestExceptionThrown.php +++ b/tests/unit/Stubs/RestfulServerTestExceptionThrown.php @@ -23,7 +23,7 @@ class RestfulServerTestExceptionThrown extends DataObject implements TestOnly 'Title' => 'Text', ); - public function onBeforeWrite() + protected function onBeforeWrite() { parent::onBeforeWrite();