$locales)) { $locales = [$locales]; } $this->locale(...$locales); } if (isset($settings['innerTimezone'])) { return $this->setTimezone($settings['innerTimezone']); } if (isset($settings['timezone'])) { return $this->shiftTimezone($settings['timezone']); } return $this; } public function getSettings() { $settings = []; $map = ['localStrictModeEnabled' => 'strictMode', 'localMonthsOverflow' => 'monthOverflow', 'localYearsOverflow' => 'yearOverflow', 'localHumanDiffOptions' => 'humanDiffOptions', 'localToStringFormat' => 'toStringFormat', 'localSerializer' => 'toJsonFormat', 'localMacros' => 'macros', 'localGenericMacros' => 'genericMacros', 'locale' => 'locale', 'tzName' => 'timezone', 'localFormatFunction' => 'formatFunction']; foreach ($map as $property => $key) { $value = $this->{$property} ?? null; if ($value !== null) { $settings[$key] = $value; } } return $settings; } public function __debugInfo() { $infos = \array_filter(\get_object_vars($this), function ($var) { return $var; }); foreach (['dumpProperties', 'constructedObjectId'] as $property) { if (isset($infos[$property])) { unset($infos[$property]); } } $this->addExtraDebugInfos($infos); return $infos; } protected function addExtraDebugInfos(&$infos) : void { if ($this instanceof DateTimeInterface) { try { if (!isset($infos['date'])) { $infos['date'] = $this->format(CarbonInterface::MOCK_DATETIME_FORMAT); } if (!isset($infos['timezone'])) { $infos['timezone'] = $this->tzName; } } catch (Throwable $exception) { // noop } } } }
Fatal error: Trait "MailPoetVendor\Carbon\Traits\Options" not found in /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/nesbot/carbon/src/Carbon/Traits/Date.php on line 524