>timestamp, 'formatted' => $this->rawFormat(\defined('static::DEFAULT_TO_STRING_FORMAT') ? static::DEFAULT_TO_STRING_FORMAT : CarbonInterface::DEFAULT_TO_STRING_FORMAT), 'timezone' => $this->timezone]; } public function toObject() { return (object) $this->toArray(); } public function toString() { return $this->avoidMutation()->locale('en')->isoFormat('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); } public function toISOString($keepOffset = \false) { if (!$this->isValid()) { return null; } $yearFormat = $this->year < 0 || $this->year > 9999 ? 'YYYYYY' : 'YYYY'; $tzFormat = $keepOffset ? 'Z' : '[Z]'; $date = $keepOffset ? $this : $this->avoidMutation()->utc(); return $date->isoFormat("{$yearFormat}-MM-DD[T]HH:mm:ss.SSSSSS{$tzFormat}"); } public function toJSON() { return $this->toISOString(); } public function toDateTime() { return new DateTime($this->rawFormat('Y-m-d H:i:s.u'), $this->getTimezone()); } public function toDateTimeImmutable() { return new DateTimeImmutable($this->rawFormat('Y-m-d H:i:s.u'), $this->getTimezone()); } public function toDate() { return $this->toDateTime(); } public function toPeriod($end = null, $interval = null, $unit = null) { if ($unit) { $interval = CarbonInterval::make("{$interval} " . static::pluralUnit($unit)); } $period = ($this->isMutable() ? new CarbonPeriod() : new CarbonPeriodImmutable())->setDateClass(static::class)->setStartDate($this); if ($interval) { $period = $period->setDateInterval($interval); } if (\is_int($end) || \is_string($end) && \ctype_digit($end)) { $period = $period->setRecurrences($end); } elseif ($end) { $period = $period->setEndDate($end); } return $period; } public function range($end = null, $interval = null, $unit = null) { return $this->toPeriod($end, $interval, $unit); } }
Fatal error: Trait "MailPoetVendor\Carbon\Traits\Converter" not found in /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/nesbot/carbon/src/Carbon/Traits/Date.php on line 524