@@ -98,59 +98,121 @@ public function diff(DateTimeInterface $targetObject, bool $absolute = false)
98
98
* @tentative-return-type
99
99
* @return (DateTimeImmutable | false)
100
100
*/
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 ' )]
101
108
public function modify (string $ modifier )
102
109
{
103
110
}
104
111
/**
105
112
* @tentative-return-type
106
113
* @return DateTimeImmutable
107
114
*/
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 ' )]
108
122
public function add (DateInterval $ interval )
109
123
{
110
124
}
111
125
/**
112
126
* @tentative-return-type
113
127
* @return DateTimeImmutable
114
128
*/
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 ' )]
115
136
public function sub (DateInterval $ interval )
116
137
{
117
138
}
118
139
/**
119
140
* @tentative-return-type
120
141
* @return DateTimeImmutable
121
142
*/
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 ' )]
122
150
public function setTimezone (DateTimeZone $ timezone )
123
151
{
124
152
}
125
153
/**
126
154
* @tentative-return-type
127
155
* @return DateTimeImmutable
128
156
*/
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 ' )]
129
164
public function setTime (int $ hour , int $ minute , int $ second = 0 , int $ microsecond = 0 )
130
165
{
131
166
}
132
167
/**
133
168
* @tentative-return-type
134
169
* @return DateTimeImmutable
135
170
*/
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 ' )]
136
178
public function setDate (int $ year , int $ month , int $ day )
137
179
{
138
180
}
139
181
/**
140
182
* @tentative-return-type
141
183
* @return DateTimeImmutable
142
184
*/
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 ' )]
143
192
public function setISODate (int $ year , int $ week , int $ dayOfWeek = 1 )
144
193
{
145
194
}
146
195
/**
147
196
* @tentative-return-type
148
197
* @return DateTimeImmutable
149
198
*/
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 ' )]
150
206
public function setTimestamp (int $ timestamp )
151
207
{
152
208
}
153
209
#[\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 ' )]
154
216
public function setMicrosecond (int $ microsecond ): static
155
217
{
156
218
}
0 commit comments