From 4b1914b3b5da831044be0242ff4d9a79f11028fe Mon Sep 17 00:00:00 2001 From: rcousseau Date: Wed, 27 Sep 2023 12:09:29 +0200 Subject: [PATCH] Fix Deprecated: Use of "self" in callables is deprecated in ... on line ... --- templates/Builder/Om/baseObjectMethodHook.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/Builder/Om/baseObjectMethodHook.php b/templates/Builder/Om/baseObjectMethodHook.php index efd73a13e1..82a525c76d 100644 --- a/templates/Builder/Om/baseObjectMethodHook.php +++ b/templates/Builder/Om/baseObjectMethodHook.php @@ -8,7 +8,7 @@ public function preSave(?ConnectionInterface $con = null): bool { - if (is_callable('parent::preSave')) { + if (is_callable(parent::class.'::preSave')) { return parent::preSave($con); } @@ -25,7 +25,7 @@ public function preSave(?ConnectionInterface $con = null): bool public function postSave(?ConnectionInterface $con = null): void { - if (is_callable('parent::postSave')) { + if (is_callable(parent::class.'::postSave')) { parent::postSave($con); } @@ -41,7 +41,7 @@ public function postSave(?ConnectionInterface $con = null): void public function preInsert(?ConnectionInterface $con = null): bool { - if (is_callable('parent::preInsert')) { + if (is_callable(parent::class.'::preInsert')) { return parent::preInsert($con); } @@ -58,7 +58,7 @@ public function preInsert(?ConnectionInterface $con = null): bool public function postInsert(?ConnectionInterface $con = null): void { - if (is_callable('parent::postInsert')) { + if (is_callable(parent::class.'::postInsert')) { parent::postInsert($con); } @@ -74,7 +74,7 @@ public function postInsert(?ConnectionInterface $con = null): void public function preUpdate(?ConnectionInterface $con = null): bool { - if (is_callable('parent::preUpdate')) { + if (is_callable(parent::class.'::preUpdate')) { return parent::preUpdate($con); } @@ -91,7 +91,7 @@ public function preUpdate(?ConnectionInterface $con = null): bool public function postUpdate(?ConnectionInterface $con = null): void { - if (is_callable('parent::postUpdate')) { + if (is_callable(parent::class.'::postUpdate')) { parent::postUpdate($con); } @@ -107,7 +107,7 @@ public function postUpdate(?ConnectionInterface $con = null): void public function preDelete(?ConnectionInterface $con = null): bool { - if (is_callable('parent::preDelete')) { + if (is_callable(parent::class.'::preDelete')) { return parent::preDelete($con); } @@ -124,7 +124,7 @@ public function preDelete(?ConnectionInterface $con = null): bool public function postDelete(?ConnectionInterface $con = null): void { - if (is_callable('parent::postDelete')) { + if (is_callable(parent::class.'::postDelete')) { parent::postDelete($con); }