Skip to content

Commit

Permalink
API Match new method signature from framework (#2960)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Jun 11, 2024
1 parent 2979abf commit f9158a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/Model/VirtualPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit f9158a9

Please sign in to comment.