PHP - Manual: DateObjectError
2025-02-27
(PHP 8 >= 8.3.0)
Thrown when one of the Date/Time classes has not been correctly initialised.
Because Date/Time classes are not final, these classes can be inherit. When the parent constructor is not called, this error is thrown. This is always a programming error.
官方地址:https://www.php.net/manual/en/class.dateobjecterror.php