API Match new method signature from framework (#2960)

This commit is contained in:
Guy Sartorelli 2024-06-11 16:30:48 +12:00 committed by GitHub
parent 2979abf92e
commit f9158a9dd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -484,15 +484,15 @@ class VirtualPage extends Page
* on this object. * on this object.
* *
* @param string $field * @param string $field
* @return string * @return string|null
*/ */
public function castingHelper($field) public function castingHelper($field, bool $useFallback = true)
{ {
$copy = $this->CopyContentFrom(); $copy = $this->CopyContentFrom();
if ($copy && $copy->exists() && ($helper = $copy->castingHelper($field))) { if ($copy && $copy->exists() && ($helper = $copy->castingHelper($field, $useFallback))) {
return $helper; return $helper;
} }
return parent::castingHelper($field); return parent::castingHelper($field, $useFallback);
} }
/** /**