@@ -524,29 +524,38 @@ public function getMicrosecond(): int {}
524524 public function diff (DateTimeInterface $ targetObject , bool $ absolute = false ): DateInterval {}
525525
526526 /** @tentative-return-type */
527+ #[\NoDiscard(message: "as DateTimeImmutable::modify() does not modify the object itself " )]
527528 public function modify (string $ modifier ): DateTimeImmutable {}
528529
529530 /** @tentative-return-type */
531+ #[\NoDiscard(message: "as DateTimeImmutable::add() does not modify the object itself " )]
530532 public function add (DateInterval $ interval ): DateTimeImmutable {}
531533
532534 /** @tentative-return-type */
535+ #[\NoDiscard(message: "as DateTimeImmutable::sub() does not modify the object itself " )]
533536 public function sub (DateInterval $ interval ): DateTimeImmutable {}
534537
535538 /** @tentative-return-type */
539+ #[\NoDiscard(message: "as DateTimeImmutable::setTimezone() does not modify the object itself " )]
536540 public function setTimezone (DateTimeZone $ timezone ): DateTimeImmutable {}
537541
538542 /** @tentative-return-type */
543+ #[\NoDiscard(message: "as DateTimeImmutable::setTime() does not modify the object itself " )]
539544 public function setTime (int $ hour , int $ minute , int $ second = 0 , int $ microsecond = 0 ): DateTimeImmutable {}
540545
541546 /** @tentative-return-type */
547+ #[\NoDiscard(message: "as DateTimeImmutable::setDate() does not modify the object itself " )]
542548 public function setDate (int $ year , int $ month , int $ day ): DateTimeImmutable {}
543549
544550 /** @tentative-return-type */
551+ #[\NoDiscard(message: "as DateTimeImmutable::setISODate() does not modify the object itself " )]
545552 public function setISODate (int $ year , int $ week , int $ dayOfWeek = 1 ): DateTimeImmutable {}
546553
547554 /** @tentative-return-type */
555+ #[\NoDiscard(message: "as DateTimeImmutable::setTimestamp() does not modify the object itself " )]
548556 public function setTimestamp (int $ timestamp ): DateTimeImmutable {}
549557
558+ #[\NoDiscard(message: "as DateTimeImmutable::setMicrosecond() does not modify the object itself " )]
550559 public function setMicrosecond (int $ microsecond ): static {}
551560
552561 /** @tentative-return-type */
0 commit comments