$date = null)
{
$date = $this->resolveCarbon($date);
return $this->gt($date) ? $this : $date;
}
public function maximum($date = null)
{
return $this->max($date);
}
#[\ReturnTypeWillChange]
public function modify($modify)
{
return parent::modify((string) $modify);
}
public function change($modifier)
{
return $this->modify(\preg_replace_callback('/^(next|previous|last)\\s+(\\d{1,2}(h|am|pm|:\\d{1,2}(:\\d{1,2})?))$/i', function ($match) {
$match[2] = \str_replace('h', ':00', $match[2]);
$test = $this->avoidMutation()->modify($match[2]);
$method = $match[1] === 'next' ? 'lt' : 'gt';
$match[1] = $test->{$method}($this) ? $match[1] . ' day' : 'today';
return $match[1] . ' ' . $match[2];
}, \strtr(\trim($modifier), [' at ' => ' ', 'just now' => 'now', 'after tomorrow' => 'tomorrow +1 day', 'before yesterday' => 'yesterday -1 day'])));
}
}
Fatal error: Trait "MailPoetVendor\Carbon\Traits\Modifiers" not found in /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/nesbot/carbon/src/Carbon/Traits/Date.php on line 524