@@ -119,8 +119,8 @@ public function diff(
119119 * Format accepted by {@link https://php.net/manual/en/function.date.php date()}.
120120 * </p>
121121 * @return string
122- * Returns the formatted date string on success or <b>FALSE</b> on failure .
123- * Since PHP8, it always returns <b>STRING </b>.
122+ * Returns the formatted date string on success.
123+ * Prior to PHP 8.1, <b>FALSE </b> was returned on failure .
124124 */
125125 #[Pure(true )]
126126 #[TentativeType]
@@ -131,12 +131,12 @@ public function format(#[LanguageLevelTypeAware(['8.0' => 'string'], default: ''
131131 * Returns the timezone offset
132132 * @link https://php.net/manual/en/datetime.getoffset.php
133133 * @return int|false
134- * Returns the timezone offset in seconds from UTC on success
135- * or <b>FALSE</b> on failure. Since PHP8, it always returns <b>INT </b>.
134+ * Returns the timezone offset in seconds from UTC on success.
135+ * Prior to PHP 8.0, <b>FALSE </b> was returned on failure .
136136 */
137137 #[LanguageLevelTypeAware(["8.0 " => "int " ], default: "int|false " )]
138138 #[TentativeType]
139- public function getOffset (): int ;
139+ public function getOffset ();
140140
141141 /**
142142 * (PHP 5 >=5.5.0)<br/>
@@ -448,8 +448,9 @@ public static function __set_state(array $array): static {}
448448 * @param int $year <p>Year of the date.</p>
449449 * @param int $month <p>Month of the date.</p>
450450 * @param int $day <p>Day of the date.</p>
451- * @return static|false
452- * Returns the {@link https://php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
451+ * @return static
452+ * Returns the {@link https://php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining.
453+ * Prior to PHP 8.1, <b>FALSE</b> was returned on failure.
453454 */
454455 #[TentativeType]
455456 #[\NoDiscard(message: "as DateTimeImmutable::setDate() does not modify the object itself " )]
@@ -466,8 +467,9 @@ public function setDate(
466467 * @param int $year <p>Year of the date.</p>
467468 * @param int $week <p>Week of the date.</p>
468469 * @param int $dayOfWeek [optional] <p>Offset from the first day of the week.</p>
469- * @return static|false
470- * Returns the {@link https://php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
470+ * @return static
471+ * Returns the {@link https://php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining.
472+ * Prior to PHP 8.1, <b>FALSE</b> was returned on failure.
471473 */
472474 #[TentativeType]
473475 #[\NoDiscard(message: "as DateTimeImmutable::setISODate() does not modify the object itself " )]
@@ -485,8 +487,9 @@ public function setISODate(
485487 * @param int $minute <p> Minute of the time. </p>
486488 * @param int $second [optional] <p> Second of the time. </p>
487489 * @param int $microsecond [optional] <p> Microseconds of the time. Added since 7.1</p>
488- * @return static|false
489- * Returns the {@link https://php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
490+ * @return static
491+ * Returns the {@link https://php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining.
492+ * Prior to PHP 8.1, <b>FALSE</b> was returned on failure.
490493 */
491494 #[TentativeType]
492495 #[\NoDiscard(message: "as DateTimeImmutable::setTime() does not modify the object itself " )]
@@ -505,7 +508,7 @@ public function setTime(
505508 * @param int $timestamp <p>Unix timestamp representing the date.</p>
506509 * @return static
507510 * Returns the {@link https://php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining.
508- * Prior to PHP 8.0 , <b>FALSE</b> was returned on failure.
511+ * Prior to PHP 8.1 , <b>FALSE</b> was returned on failure.
509512 */
510513 #[TentativeType]
511514 #[\NoDiscard(message: "as DateTimeImmutable::setTimestamp() does not modify the object itself " )]
@@ -521,7 +524,7 @@ public function setTimestamp(#[LanguageLevelTypeAware(['8.0' => 'int'], default:
521524 * </p>
522525 * @return static
523526 * Returns the {@link https://php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining.
524- * Prior to PHP 8.0 , <b>FALSE</b> was returned on failure.
527+ * Prior to PHP 8.1 , <b>FALSE</b> was returned on failure.
525528 */
526529 #[TentativeType]
527530 #[\NoDiscard(message: "as DateTimeImmutable::setTimezone() does not modify the object itself " )]
@@ -567,7 +570,7 @@ public function diff(
567570 * </p>
568571 * @return string
569572 * Returns the formatted date string on success.
570- * Prior to PHP 8.0 , <b>FALSE</b> was returned on failure.
573+ * Prior to PHP 8.1 , <b>FALSE</b> was returned on failure.
571574 */
572575 #[Pure(true )]
573576 #[TentativeType]
@@ -579,7 +582,7 @@ public function format(#[LanguageLevelTypeAware(['8.0' => 'string'], default: ''
579582 * @link https://php.net/manual/en/datetime.getoffset.php
580583 * @return int
581584 * Returns the timezone offset in seconds from UTC on success.
582- * Prior to PHP 8.0 , <b>FALSE</b> was returned on failure.
585+ * Prior to PHP 8.1 , <b>FALSE</b> was returned on failure.
583586 */
584587 #[TentativeType]
585588 public function getOffset (): int {}
0 commit comments