@@ -89,256 +89,256 @@ function xmlwriter_flush(XMLWriter $writer, bool $empty = true): string|int {}
89
89
class XMLWriter
90
90
{
91
91
/**
92
- * @return bool
92
+ * @tentative- return-type
93
93
* @alias xmlwriter_open_uri
94
94
* @no-verify Behaviour differs from the aliased function
95
95
*/
96
- public function openUri (string $ uri ) {}
96
+ public function openUri (string $ uri ): bool {}
97
97
98
98
/**
99
- * @return bool
99
+ * @tentative- return-type
100
100
* @alias xmlwriter_open_memory
101
101
* @no-verify Behaviour differs from the aliased function
102
102
*/
103
- public function openMemory () {}
103
+ public function openMemory (): bool {}
104
104
105
105
/**
106
- * @return bool
106
+ * @tentative- return-type
107
107
* @alias xmlwriter_set_indent
108
108
*/
109
- public function setIndent (bool $ enable ) {}
109
+ public function setIndent (bool $ enable ): bool {}
110
110
111
111
/**
112
- * @return bool
112
+ * @tentative- return-type
113
113
* @alias xmlwriter_set_indent_string
114
114
*/
115
- public function setIndentString (string $ indentation ) {}
115
+ public function setIndentString (string $ indentation ): bool {}
116
116
117
117
/**
118
- * @return bool
118
+ * @tentative- return-type
119
119
* @alias xmlwriter_start_comment
120
120
*/
121
- public function startComment () {}
121
+ public function startComment (): bool {}
122
122
123
123
/**
124
- * @return bool
124
+ * @tentative- return-type
125
125
* @alias xmlwriter_end_comment
126
126
*/
127
- public function endComment () {}
127
+ public function endComment (): bool {}
128
128
129
129
/**
130
- * @return bool
130
+ * @tentative- return-type
131
131
* @alias xmlwriter_start_attribute
132
132
*/
133
- public function startAttribute (string $ name ) {}
133
+ public function startAttribute (string $ name ): bool {}
134
134
135
135
/**
136
- * @return bool
136
+ * @tentative- return-type
137
137
* @alias xmlwriter_end_attribute
138
138
*/
139
- public function endAttribute () {}
139
+ public function endAttribute (): bool {}
140
140
141
141
/**
142
- * @return bool
142
+ * @tentative- return-type
143
143
* @alias xmlwriter_write_attribute
144
144
*/
145
- public function writeAttribute (string $ name , string $ value ) {}
145
+ public function writeAttribute (string $ name , string $ value ): bool {}
146
146
147
147
/**
148
- * @return bool
148
+ * @tentative- return-type
149
149
* @alias xmlwriter_start_attribute_ns
150
150
*/
151
- public function startAttributeNs (?string $ prefix , string $ name , ?string $ namespace ) {}
151
+ public function startAttributeNs (?string $ prefix , string $ name , ?string $ namespace ): bool {}
152
152
153
153
/**
154
- * @return bool
154
+ * @tentative- return-type
155
155
* @alias xmlwriter_write_attribute_ns
156
156
*/
157
- public function writeAttributeNs (?string $ prefix , string $ name , ?string $ namespace , string $ value ) {}
157
+ public function writeAttributeNs (?string $ prefix , string $ name , ?string $ namespace , string $ value ): bool {}
158
158
159
159
/**
160
- * @return bool
160
+ * @tentative- return-type
161
161
* @alias xmlwriter_start_element
162
162
*/
163
- public function startElement (string $ name ) {}
163
+ public function startElement (string $ name ): bool {}
164
164
165
165
/**
166
- * @return bool
166
+ * @tentative- return-type
167
167
* @alias xmlwriter_end_element
168
168
*/
169
- public function endElement () {}
169
+ public function endElement (): bool {}
170
170
171
171
/**
172
- * @return bool
172
+ * @tentative- return-type
173
173
* @alias xmlwriter_full_end_element
174
174
*/
175
- public function fullEndElement () {}
175
+ public function fullEndElement (): bool {}
176
176
177
177
/**
178
- * @return bool
178
+ * @tentative- return-type
179
179
* @alias xmlwriter_start_element_ns
180
180
*/
181
- public function startElementNs (?string $ prefix , string $ name , ?string $ namespace ) {}
181
+ public function startElementNs (?string $ prefix , string $ name , ?string $ namespace ): bool {}
182
182
183
183
/**
184
- * @return bool
184
+ * @tentative- return-type
185
185
* @alias xmlwriter_write_element
186
186
*/
187
- public function writeElement (string $ name , ?string $ content = null ) {}
187
+ public function writeElement (string $ name , ?string $ content = null ): bool {}
188
188
189
189
/**
190
- * @return bool
190
+ * @tentative- return-type
191
191
* @alias xmlwriter_write_element_ns
192
192
*/
193
- public function writeElementNs (?string $ prefix , string $ name , ?string $ namespace , ?string $ content = null ) {}
193
+ public function writeElementNs (?string $ prefix , string $ name , ?string $ namespace , ?string $ content = null ): bool {}
194
194
195
195
/**
196
- * @return bool
196
+ * @tentative- return-type
197
197
* @alias xmlwriter_start_pi
198
198
*/
199
- public function startPi (string $ target ) {}
199
+ public function startPi (string $ target ): bool {}
200
200
201
201
/**
202
- * @return bool
202
+ * @tentative- return-type
203
203
* @alias xmlwriter_end_pi
204
204
*/
205
- public function endPi () {}
205
+ public function endPi (): bool {}
206
206
207
207
/**
208
- * @return bool
208
+ * @tentative- return-type
209
209
* @alias xmlwriter_write_pi
210
210
*/
211
- public function writePi (string $ target , string $ content ) {}
211
+ public function writePi (string $ target , string $ content ): bool {}
212
212
213
213
/**
214
- * @return bool
214
+ * @tentative- return-type
215
215
* @alias xmlwriter_start_cdata
216
216
*/
217
- public function startCdata () {}
217
+ public function startCdata (): bool {}
218
218
219
219
/**
220
- * @return bool
220
+ * @tentative- return-type
221
221
* @alias xmlwriter_end_cdata
222
222
* */
223
- public function endCdata () {}
223
+ public function endCdata (): bool {}
224
224
225
225
/**
226
- * @return bool
226
+ * @tentative- return-type
227
227
* @alias xmlwriter_write_cdata
228
228
*/
229
- public function writeCdata (string $ content ) {}
229
+ public function writeCdata (string $ content ): bool {}
230
230
231
231
/**
232
- * @return bool
232
+ * @tentative- return-type
233
233
* @alias xmlwriter_text
234
234
*/
235
- public function text (string $ content ) {}
235
+ public function text (string $ content ): bool {}
236
236
237
237
/**
238
- * @return bool
238
+ * @tentative- return-type
239
239
* @alias xmlwriter_write_raw
240
240
*/
241
- public function writeRaw (string $ content ) {}
241
+ public function writeRaw (string $ content ): bool {}
242
242
243
243
/**
244
- * @return bool
244
+ * @tentative- return-type
245
245
* @alias xmlwriter_start_document
246
246
*/
247
- public function startDocument (?string $ version = "1.0 " , ?string $ encoding = null , ?string $ standalone = null ) {}
247
+ public function startDocument (?string $ version = "1.0 " , ?string $ encoding = null , ?string $ standalone = null ): bool {}
248
248
249
249
/**
250
- * @return bool
250
+ * @tentative- return-type
251
251
* @alias xmlwriter_end_document
252
252
*/
253
- public function endDocument () {}
253
+ public function endDocument (): bool {}
254
254
255
255
/**
256
- * @return bool
256
+ * @tentative- return-type
257
257
* @alias xmlwriter_write_comment
258
258
*/
259
- public function writeComment (string $ content ) {}
259
+ public function writeComment (string $ content ): bool {}
260
260
261
261
/**
262
- * @return bool
262
+ * @tentative- return-type
263
263
* @alias xmlwriter_start_dtd
264
264
*/
265
- public function startDtd (string $ qualifiedName , ?string $ publicId = null , ?string $ systemId = null ) {}
265
+ public function startDtd (string $ qualifiedName , ?string $ publicId = null , ?string $ systemId = null ): bool {}
266
266
267
267
/**
268
- * @return bool
268
+ * @tentative- return-type
269
269
* @alias xmlwriter_end_dtd
270
270
*/
271
- public function endDtd () {}
271
+ public function endDtd (): bool {}
272
272
273
273
/**
274
- * @return bool
274
+ * @tentative- return-type
275
275
* @alias xmlwriter_write_dtd
276
276
*/
277
- public function writeDtd (string $ name , ?string $ publicId = null , ?string $ systemId = null , ?string $ content = null ) {}
277
+ public function writeDtd (string $ name , ?string $ publicId = null , ?string $ systemId = null , ?string $ content = null ): bool {}
278
278
279
279
/**
280
- * @return bool
280
+ * @tentative- return-type
281
281
* @alias xmlwriter_start_dtd_element
282
282
*/
283
- public function startDtdElement (string $ qualifiedName ) {}
283
+ public function startDtdElement (string $ qualifiedName ): bool {}
284
284
285
285
/**
286
- * @return bool
286
+ * @tentative- return-type
287
287
* @alias xmlwriter_end_dtd_element
288
288
*/
289
- public function endDtdElement () {}
289
+ public function endDtdElement (): bool {}
290
290
291
291
/**
292
- * @return bool
292
+ * @tentative- return-type
293
293
* @alias xmlwriter_write_dtd_element
294
294
*/
295
- public function writeDtdElement (string $ name , string $ content ) {}
295
+ public function writeDtdElement (string $ name , string $ content ): bool {}
296
296
297
297
/**
298
- * @return bool
298
+ * @tentative- return-type
299
299
* @alias xmlwriter_start_dtd_attlist
300
300
*/
301
- public function startDtdAttlist (string $ name ) {}
301
+ public function startDtdAttlist (string $ name ): bool {}
302
302
303
303
/**
304
- * @return bool
304
+ * @tentative- return-type
305
305
* @alias xmlwriter_end_dtd_attlist
306
306
*/
307
- public function endDtdAttlist () {}
307
+ public function endDtdAttlist (): bool {}
308
308
309
309
/**
310
- * @return bool
310
+ * @tentative- return-type
311
311
* @alias xmlwriter_write_dtd_attlist
312
312
*/
313
- public function writeDtdAttlist (string $ name , string $ content ) {}
313
+ public function writeDtdAttlist (string $ name , string $ content ): bool {}
314
314
315
315
/**
316
- * @return bool
316
+ * @tentative- return-type
317
317
* @alias xmlwriter_start_dtd_entity
318
318
*/
319
- public function startDtdEntity (string $ name , bool $ isParam ) {}
319
+ public function startDtdEntity (string $ name , bool $ isParam ): bool {}
320
320
321
321
/**
322
- * @return bool
322
+ * @tentative- return-type
323
323
* @alias xmlwriter_end_dtd_entity
324
324
*/
325
- public function endDtdEntity () {}
325
+ public function endDtdEntity (): bool {}
326
326
327
327
/**
328
- * @return bool
328
+ * @tentative- return-type
329
329
* @alias xmlwriter_write_dtd_entity
330
330
*/
331
- public function writeDtdEntity (string $ name , string $ content , bool $ isParam = false , ?string $ publicId = null , ?string $ systemId = null , ?string $ notationData = null ) {}
331
+ public function writeDtdEntity (string $ name , string $ content , bool $ isParam = false , ?string $ publicId = null , ?string $ systemId = null , ?string $ notationData = null ): bool {}
332
332
333
333
/**
334
- * @return string
334
+ * @tentative- return-type
335
335
* @alias xmlwriter_output_memory
336
336
*/
337
- public function outputMemory (bool $ flush = true ) {}
337
+ public function outputMemory (bool $ flush = true ): string {}
338
338
339
339
/**
340
- * @return string|int
340
+ * @tentative- return-type
341
341
* @alias xmlwriter_flush
342
342
*/
343
- public function flush (bool $ empty = true ) {}
343
+ public function flush (bool $ empty = true ): string | int {}
344
344
}
0 commit comments