@@ -184,7 +184,7 @@ class DateTimeImmutable implements DateTimeInterface
184
184
* The <em>$timezone</em> parameter and the current timezone are ignored when the <em>$datetime</em> parameter either
185
185
* is a UNIX timestamp (e.g. <em>@946684800</em>) or specifies a timezone (e.g. <em>2010-01-28T15:00:00+02:00</em>).
186
186
* </p></blockquote>
187
- * @throws Exception Emits Exception in case of an error.
187
+ * @throws DateException Emits Exception in case of an error.
188
188
*/
189
189
public function __construct (
190
190
#[LanguageLevelTypeAware(['8.0 ' => 'string ' ], default: '' )] $ datetime = "now " ,
@@ -531,7 +531,7 @@ class DateTime implements DateTimeInterface
531
531
* or specifies a timezone
532
532
* (e.g. <em>2010-01-28T15:00:00+02:00</em>).
533
533
* </p> <p></p></blockquote>
534
- * @throws Exception Emits Exception in case of an error.
534
+ * @throws DateException Emits Exception in case of an error.
535
535
*/
536
536
public function __construct (
537
537
#[LanguageLevelTypeAware(['8.0 ' => 'string ' ], default: '' )] $ datetime = 'now ' ,
@@ -763,7 +763,7 @@ class DateTimeZone
763
763
/**
764
764
* @param string $timezone
765
765
* @link https://php.net/manual/en/datetimezone.construct.php
766
- * @throws Exception Emits Exception in case of an error.
766
+ * @throws DateException Emits Exception in case of an error.
767
767
*/
768
768
public function __construct (#[LanguageLevelTypeAware(['8.0 ' => 'string ' ], default: '' )] $ timezone ) {}
769
769
@@ -915,7 +915,7 @@ class DateInterval
915
915
916
916
/**
917
917
* @param string $duration
918
- * @throws Exception when the $duration cannot be parsed as an interval.
918
+ * @throws DateException when the $duration cannot be parsed as an interval.
919
919
* @link https://php.net/manual/en/dateinterval.construct.php
920
920
*/
921
921
public function __construct (#[LanguageLevelTypeAware(['8.0 ' => 'string ' ], default: '' )] $ duration ) {}
0 commit comments