According to: https://www.php.net/manual/en/datetimeimmutable.getlasterrors.php if DateTimeImmutable::getLastErrors() returns false there is no errors at all. In PHP 8.2 false is returned when no errors (unlike version <=8.1 where an array is always returned), which leads to the entire library not working properly.
According to: https://www.php.net/manual/en/datetimeimmutable.getlasterrors.php if
DateTimeImmutable::getLastErrors()
returnsfalse
there is no errors at all. In PHP 8.2false
is returned when no errors (unlike version <=8.1 where an array is always returned), which leads to the entire library not working properly.