@@ -8,87 +8,87 @@ public function __construct(array|object $array = [], int $flags = 0, string $it
8
8
9
9
/**
10
10
* @param string|int $key
11
- * @return bool
11
+ * @tentative- return-type
12
12
*/
13
- public function offsetExists ($ key ) {}
13
+ public function offsetExists ($ key ): bool {}
14
14
15
15
/**
16
16
* @param string|int $key
17
- * @return mixed
17
+ * @tentative- return-type
18
18
*/
19
- public function offsetGet ($ key ) {}
19
+ public function offsetGet ($ key ): mixed {}
20
20
21
21
/**
22
22
* @param string|int $key
23
- * @return void
23
+ * @tentative- return-type
24
24
*/
25
- public function offsetSet ($ key , mixed $ value ) {}
25
+ public function offsetSet ($ key , mixed $ value ): void {}
26
26
27
27
/**
28
28
* @param string|int $key
29
- * @return void
29
+ * @tentative- return-type
30
30
*/
31
- public function offsetUnset ($ key ) {}
31
+ public function offsetUnset ($ key ): void {}
32
32
33
- /** @return void */
34
- public function append (mixed $ value ) {}
33
+ /** @tentative- return-type */
34
+ public function append (mixed $ value ): void {}
35
35
36
- /** @return array */
37
- public function getArrayCopy () {}
36
+ /** @tentative- return-type */
37
+ public function getArrayCopy (): array {}
38
38
39
- /** @return int */
40
- public function count () {}
39
+ /** @tentative- return-type */
40
+ public function count (): int {}
41
41
42
- /** @return int */
43
- public function getFlags () {}
42
+ /** @tentative- return-type */
43
+ public function getFlags (): int {}
44
44
45
- /** @return void */
46
- public function setFlags (int $ flags ) {}
45
+ /** @tentative- return-type */
46
+ public function setFlags (int $ flags ): void {}
47
47
48
- /** @return bool */
49
- public function asort (int $ flags = SORT_REGULAR ) {}
48
+ /** @tentative- return-type */
49
+ public function asort (int $ flags = SORT_REGULAR ): bool {}
50
50
51
- /** @return bool */
52
- public function ksort (int $ flags = SORT_REGULAR ) {}
51
+ /** @tentative- return-type */
52
+ public function ksort (int $ flags = SORT_REGULAR ): bool {}
53
53
54
- /** @return bool */
55
- public function uasort (callable $ callback ) {}
54
+ /** @tentative- return-type */
55
+ public function uasort (callable $ callback ): bool {}
56
56
57
- /** @return bool */
58
- public function uksort (callable $ callback ) {}
57
+ /** @tentative- return-type */
58
+ public function uksort (callable $ callback ): bool {}
59
59
60
- /** @return bool */
61
- public function natsort () {}
60
+ /** @tentative- return-type */
61
+ public function natsort (): bool {}
62
62
63
- /** @return bool */
64
- public function natcasesort () {}
63
+ /** @tentative- return-type */
64
+ public function natcasesort (): bool {}
65
65
66
- /** @return void */
67
- public function unserialize (string $ data ) {}
66
+ /** @tentative- return-type */
67
+ public function unserialize (string $ data ): void {}
68
68
69
- /** @return string */
70
- public function serialize () {}
69
+ /** @tentative- return-type */
70
+ public function serialize (): string {}
71
71
72
- /** @return array */
73
- public function __serialize () {}
72
+ /** @tentative- return-type */
73
+ public function __serialize (): array {}
74
74
75
- /** @return void */
76
- public function __unserialize (array $ data ) {}
75
+ /** @tentative- return-type */
76
+ public function __unserialize (array $ data ): void {}
77
77
78
- /** @return Iterator */
79
- public function getIterator () {}
78
+ /** @tentative- return-type */
79
+ public function getIterator (): Iterator {}
80
80
81
- /** @return array|null */
82
- public function exchangeArray (array |object $ array ) {}
81
+ /** @tentative- return-type */
82
+ public function exchangeArray (array |object $ array ): ? array {}
83
83
84
- /** @return void */
85
- public function setIteratorClass (string $ iteratorClass ) {}
84
+ /** @tentative- return-type */
85
+ public function setIteratorClass (string $ iteratorClass ): void {}
86
86
87
- /** @return string */
88
- public function getIteratorClass () {}
87
+ /** @tentative- return-type */
88
+ public function getIteratorClass (): string {}
89
89
90
- /** @return array */
91
- public function __debugInfo () {}
90
+ /** @tentative- return-type */
91
+ public function __debugInfo (): array {}
92
92
}
93
93
94
94
class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Countable
@@ -97,152 +97,152 @@ public function __construct(array|object $array = [], int $flags = 0) {}
97
97
98
98
/**
99
99
* @param string|int $key
100
- * @return bool
100
+ * @tentative- return-type
101
101
* @implementation-alias ArrayObject::offsetExists
102
102
*/
103
- public function offsetExists ($ key ) {}
103
+ public function offsetExists ($ key ): bool {}
104
104
105
105
/**
106
106
* @param string|int $key
107
- * @return mixed
107
+ * @tentative- return-type
108
108
* @implementation-alias ArrayObject::offsetGet
109
109
*/
110
- public function offsetGet ($ key ) {}
110
+ public function offsetGet ($ key ): mixed {}
111
111
112
112
/**
113
113
* @param string|int $key
114
- * @return void
114
+ * @tentative- return-type
115
115
* @implementation-alias ArrayObject::offsetSet
116
116
*/
117
- public function offsetSet ($ key , mixed $ value ) {}
117
+ public function offsetSet ($ key , mixed $ value ): void {}
118
118
119
119
/**
120
120
* @param string|int $key
121
- * @return void
121
+ * @tentative- return-type
122
122
* @implementation-alias ArrayObject::offsetUnset
123
123
*/
124
- public function offsetUnset ($ key ) {}
124
+ public function offsetUnset ($ key ): void {}
125
125
126
126
/**
127
- * @return void
127
+ * @tentative- return-type
128
128
* @implementation-alias ArrayObject::append
129
129
*/
130
- public function append (mixed $ value ) {}
130
+ public function append (mixed $ value ): void {}
131
131
132
132
/**
133
- * @return array
133
+ * @tentative- return-type
134
134
* @implementation-alias ArrayObject::getArrayCopy
135
135
*/
136
- public function getArrayCopy () {}
136
+ public function getArrayCopy (): array {}
137
137
138
138
/**
139
- * @return int
139
+ * @tentative- return-type
140
140
* @implementation-alias ArrayObject::count
141
141
*/
142
- public function count () {}
142
+ public function count (): int {}
143
143
144
144
/**
145
- * @return int
145
+ * @tentative- return-type
146
146
* @implementation-alias ArrayObject::getFlags
147
147
*/
148
- public function getFlags () {}
148
+ public function getFlags (): int {}
149
149
150
150
/**
151
- * @return void
151
+ * @tentative- return-type
152
152
* @implementation-alias ArrayObject::setFlags
153
153
*/
154
- public function setFlags (int $ flags ) {}
154
+ public function setFlags (int $ flags ): void {}
155
155
156
156
/**
157
- * @return bool
157
+ * @tentative- return-type
158
158
* @implementation-alias ArrayObject::asort
159
159
*/
160
- public function asort (int $ flags = SORT_REGULAR ) {}
160
+ public function asort (int $ flags = SORT_REGULAR ): bool {}
161
161
162
162
/**
163
- * @return bool
163
+ * @tentative- return-type
164
164
* @implementation-alias ArrayObject::ksort
165
165
*/
166
- public function ksort (int $ flags = SORT_REGULAR ) {}
166
+ public function ksort (int $ flags = SORT_REGULAR ): bool {}
167
167
168
168
/**
169
- * @return bool
169
+ * @tentative- return-type
170
170
* @implementation-alias ArrayObject::uasort
171
171
*/
172
- public function uasort (callable $ callback ) {}
172
+ public function uasort (callable $ callback ): bool {}
173
173
174
174
/**
175
- * @return bool
175
+ * @tentative- return-type
176
176
* @implementation-alias ArrayObject::uksort
177
177
*/
178
- public function uksort (callable $ callback ) {}
178
+ public function uksort (callable $ callback ): bool {}
179
179
180
180
/**
181
- * @return bool
181
+ * @tentative- return-type
182
182
* @implementation-alias ArrayObject::natsort
183
183
*/
184
- public function natsort () {}
184
+ public function natsort (): bool {}
185
185
186
186
/**
187
- * @return bool
187
+ * @tentative- return-type
188
188
* @implementation-alias ArrayObject::natcasesort
189
189
*/
190
- public function natcasesort () {}
190
+ public function natcasesort (): bool {}
191
191
192
192
/**
193
- * @return void
193
+ * @tentative- return-type
194
194
* @implementation-alias ArrayObject::unserialize
195
195
*/
196
- public function unserialize (string $ data ) {}
196
+ public function unserialize (string $ data ): void {}
197
197
198
198
/**
199
- * @return string
199
+ * @tentative- return-type
200
200
* @implementation-alias ArrayObject::serialize
201
201
*/
202
- public function serialize () {}
202
+ public function serialize (): string {}
203
203
204
204
/**
205
- * @return array
205
+ * @tentative- return-type
206
206
* @implementation-alias ArrayObject::__serialize
207
207
*/
208
- public function __serialize () {}
208
+ public function __serialize (): array {}
209
209
210
210
/**
211
- * @return void
211
+ * @tentative- return-type
212
212
* @implementation-alias ArrayObject::__unserialize
213
213
*/
214
- public function __unserialize (array $ data ) {}
214
+ public function __unserialize (array $ data ): void {}
215
215
216
- /** @return void */
217
- public function rewind () {}
216
+ /** @tentative- return-type */
217
+ public function rewind (): void {}
218
218
219
- /** @return mixed */
220
- public function current () {}
219
+ /** @tentative- return-type */
220
+ public function current (): mixed {}
221
221
222
- /** @return mixed */
223
- public function key () {}
222
+ /** @tentative- return-type */
223
+ public function key (): mixed {}
224
224
225
- /** @return void */
226
- public function next () {}
225
+ /** @tentative- return-type */
226
+ public function next (): void {}
227
227
228
- /** @return bool */
229
- public function valid () {}
228
+ /** @tentative- return-type */
229
+ public function valid (): bool {}
230
230
231
- /** @return void */
232
- public function seek (int $ offset ) {}
231
+ /** @tentative- return-type */
232
+ public function seek (int $ offset ): void {}
233
233
234
234
/**
235
- * @return array
235
+ * @tentative- return-type
236
236
* @implementation-alias ArrayObject::__debugInfo
237
237
*/
238
- public function __debugInfo () {}
238
+ public function __debugInfo (): array {}
239
239
}
240
240
241
241
class RecursiveArrayIterator extends ArrayIterator implements RecursiveIterator
242
242
{
243
- /** @return bool */
244
- public function hasChildren () {}
243
+ /** @tentative- return-type */
244
+ public function hasChildren (): bool {}
245
245
246
- /** @return RecursiveArrayIterator|null */
247
- public function getChildren () {}
246
+ /** @tentative- return-type */
247
+ public function getChildren (): ? RecursiveArrayIterator {}
248
248
}
0 commit comments