php8.5
Home/ Manual/ reference / datetime/ The DateObjectError class

The DateObjectError class

Thrown when one of the Date/Time classes has not been correctly initialised.

Intro

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.

Class synopsis

extends DateError { }

See Also

  • DateError
  • DateRangeError

Source: reference/datetime/dateobjecterror.xml · from the official PHP manual (php/doc-en)