@@ -98,59 +98,121 @@ public function diff(DateTimeInterface $targetObject, bool $absolute = false)
9898 * @tentative-return-type
9999 * @return (DateTimeImmutable | false)
100100 */
101+ #[\Until('8.5 ' )]
102+ public function modify (string $ modifier )
103+ {
104+ }
105+ /** @tentative-return-type */
106+ #[\NoDiscard(message: "as DateTimeImmutable::modify() does not modify the object itself " )]
107+ #[\Since('8.5 ' )]
101108 public function modify (string $ modifier )
102109 {
103110 }
104111 /**
105112 * @tentative-return-type
106113 * @return DateTimeImmutable
107114 */
115+ #[\Until('8.5 ' )]
116+ public function add (DateInterval $ interval )
117+ {
118+ }
119+ /** @tentative-return-type */
120+ #[\NoDiscard(message: "as DateTimeImmutable::add() does not modify the object itself " )]
121+ #[\Since('8.5 ' )]
108122 public function add (DateInterval $ interval )
109123 {
110124 }
111125 /**
112126 * @tentative-return-type
113127 * @return DateTimeImmutable
114128 */
129+ #[\Until('8.5 ' )]
130+ public function sub (DateInterval $ interval )
131+ {
132+ }
133+ /** @tentative-return-type */
134+ #[\NoDiscard(message: "as DateTimeImmutable::sub() does not modify the object itself " )]
135+ #[\Since('8.5 ' )]
115136 public function sub (DateInterval $ interval )
116137 {
117138 }
118139 /**
119140 * @tentative-return-type
120141 * @return DateTimeImmutable
121142 */
143+ #[\Until('8.5 ' )]
144+ public function setTimezone (DateTimeZone $ timezone )
145+ {
146+ }
147+ /** @tentative-return-type */
148+ #[\NoDiscard(message: "as DateTimeImmutable::setTimezone() does not modify the object itself " )]
149+ #[\Since('8.5 ' )]
122150 public function setTimezone (DateTimeZone $ timezone )
123151 {
124152 }
125153 /**
126154 * @tentative-return-type
127155 * @return DateTimeImmutable
128156 */
157+ #[\Until('8.5 ' )]
158+ public function setTime (int $ hour , int $ minute , int $ second = 0 , int $ microsecond = 0 )
159+ {
160+ }
161+ /** @tentative-return-type */
162+ #[\NoDiscard(message: "as DateTimeImmutable::setTime() does not modify the object itself " )]
163+ #[\Since('8.5 ' )]
129164 public function setTime (int $ hour , int $ minute , int $ second = 0 , int $ microsecond = 0 )
130165 {
131166 }
132167 /**
133168 * @tentative-return-type
134169 * @return DateTimeImmutable
135170 */
171+ #[\Until('8.5 ' )]
172+ public function setDate (int $ year , int $ month , int $ day )
173+ {
174+ }
175+ /** @tentative-return-type */
176+ #[\NoDiscard(message: "as DateTimeImmutable::setDate() does not modify the object itself " )]
177+ #[\Since('8.5 ' )]
136178 public function setDate (int $ year , int $ month , int $ day )
137179 {
138180 }
139181 /**
140182 * @tentative-return-type
141183 * @return DateTimeImmutable
142184 */
185+ #[\Until('8.5 ' )]
186+ public function setISODate (int $ year , int $ week , int $ dayOfWeek = 1 )
187+ {
188+ }
189+ /** @tentative-return-type */
190+ #[\NoDiscard(message: "as DateTimeImmutable::setISODate() does not modify the object itself " )]
191+ #[\Since('8.5 ' )]
143192 public function setISODate (int $ year , int $ week , int $ dayOfWeek = 1 )
144193 {
145194 }
146195 /**
147196 * @tentative-return-type
148197 * @return DateTimeImmutable
149198 */
199+ #[\Until('8.5 ' )]
200+ public function setTimestamp (int $ timestamp )
201+ {
202+ }
203+ /** @tentative-return-type */
204+ #[\NoDiscard(message: "as DateTimeImmutable::setTimestamp() does not modify the object itself " )]
205+ #[\Since('8.5 ' )]
150206 public function setTimestamp (int $ timestamp )
151207 {
152208 }
153209 #[\Since('8.4 ' )]
210+ #[\Until('8.5 ' )]
211+ public function setMicrosecond (int $ microsecond ): static
212+ {
213+ }
214+ #[\NoDiscard(message: "as DateTimeImmutable::setMicrosecond() does not modify the object itself " )]
215+ #[\Since('8.5 ' )]
154216 public function setMicrosecond (int $ microsecond ): static
155217 {
156218 }
0 commit comments