From 5ac9391324db47e5fdd2d4775658b75d67f2b3d3 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 09a3c3acba..a973aab802 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); } /**