@@ -524,29 +524,38 @@ public function getMicrosecond(): int {}
524
524
public function diff (DateTimeInterface $ targetObject , bool $ absolute = false ): DateInterval {}
525
525
526
526
/** @tentative-return-type */
527
+ #[\NoDiscard(message: "as DateTimeImmutable::modify() does not modify the object itself " )]
527
528
public function modify (string $ modifier ): DateTimeImmutable {}
528
529
529
530
/** @tentative-return-type */
531
+ #[\NoDiscard(message: "as DateTimeImmutable::add() does not modify the object itself " )]
530
532
public function add (DateInterval $ interval ): DateTimeImmutable {}
531
533
532
534
/** @tentative-return-type */
535
+ #[\NoDiscard(message: "as DateTimeImmutable::sub() does not modify the object itself " )]
533
536
public function sub (DateInterval $ interval ): DateTimeImmutable {}
534
537
535
538
/** @tentative-return-type */
539
+ #[\NoDiscard(message: "as DateTimeImmutable::setTimezone() does not modify the object itself " )]
536
540
public function setTimezone (DateTimeZone $ timezone ): DateTimeImmutable {}
537
541
538
542
/** @tentative-return-type */
543
+ #[\NoDiscard(message: "as DateTimeImmutable::setTime() does not modify the object itself " )]
539
544
public function setTime (int $ hour , int $ minute , int $ second = 0 , int $ microsecond = 0 ): DateTimeImmutable {}
540
545
541
546
/** @tentative-return-type */
547
+ #[\NoDiscard(message: "as DateTimeImmutable::setDate() does not modify the object itself " )]
542
548
public function setDate (int $ year , int $ month , int $ day ): DateTimeImmutable {}
543
549
544
550
/** @tentative-return-type */
551
+ #[\NoDiscard(message: "as DateTimeImmutable::setISODate() does not modify the object itself " )]
545
552
public function setISODate (int $ year , int $ week , int $ dayOfWeek = 1 ): DateTimeImmutable {}
546
553
547
554
/** @tentative-return-type */
555
+ #[\NoDiscard(message: "as DateTimeImmutable::setTimestamp() does not modify the object itself " )]
548
556
public function setTimestamp (int $ timestamp ): DateTimeImmutable {}
549
557
558
+ #[\NoDiscard(message: "as DateTimeImmutable::setMicrosecond() does not modify the object itself " )]
550
559
public function setMicrosecond (int $ microsecond ): static {}
551
560
552
561
/** @tentative-return-type */
0 commit comments