From f9158a9dd8816095f48a37dc3ae9e8321844737f Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Tue, 11 Jun 2024 16:30:48 +1200 Subject: [PATCH] API Match new method signature from framework (#2960) --- code/Model/VirtualPage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/Model/VirtualPage.php b/code/Model/VirtualPage.php index 948a756973..a5d9920f24 100644 --- a/code/Model/VirtualPage.php +++ b/code/Model/VirtualPage.php @@ -484,15 +484,15 @@ public function hasMethod($method) * on this object. * * @param string $field - * @return string + * @return string|null */ - public function castingHelper($field) + public function castingHelper($field, bool $useFallback = true) { $copy = $this->CopyContentFrom(); - if ($copy && $copy->exists() && ($helper = $copy->castingHelper($field))) { + if ($copy && $copy->exists() && ($helper = $copy->castingHelper($field, $useFallback))) { return $helper; } - return parent::castingHelper($field); + return parent::castingHelper($field, $useFallback); } /**