4
4
5
5
class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Countable
6
6
{
7
- public function __construct (array |object $ input = [], int $ flags = 0 , string $ iterator_class = ArrayIterator::class) {}
7
+ public function __construct (array |object $ array = [], int $ flags = 0 , string $ iteratorClass = ArrayIterator::class) {}
8
8
9
9
/**
10
- * @param string|int $index
10
+ * @param string|int $key
11
11
* @return bool
12
12
*/
13
- public function offsetExists ($ index ) {}
13
+ public function offsetExists ($ key ) {}
14
14
15
15
/**
16
- * @param string|int $index
16
+ * @param string|int $key
17
17
* @return mixed
18
18
*/
19
- public function offsetGet ($ index ) {}
19
+ public function offsetGet ($ key ) {}
20
20
21
21
/**
22
- * @param string|int $index
22
+ * @param string|int $key
23
23
* @return void
24
24
*/
25
- public function offsetSet ($ index , mixed $ value ) {}
25
+ public function offsetSet ($ key , mixed $ value ) {}
26
26
27
27
/**
28
- * @param string|int $index
28
+ * @param string|int $key
29
29
* @return void
30
30
*/
31
- public function offsetUnset ($ index ) {}
31
+ public function offsetUnset ($ key ) {}
32
32
33
33
/** @return void */
34
34
public function append (mixed $ value ) {}
@@ -46,16 +46,16 @@ public function getFlags() {}
46
46
public function setFlags (int $ flags ) {}
47
47
48
48
/** @return bool */
49
- public function asort (int $ sort_flags = SORT_REGULAR ) {}
49
+ public function asort (int $ flags = SORT_REGULAR ) {}
50
50
51
51
/** @return bool */
52
- public function ksort (int $ sort_flags = SORT_REGULAR ) {}
52
+ public function ksort (int $ flags = SORT_REGULAR ) {}
53
53
54
54
/** @return bool */
55
- public function uasort (callable $ cmp_function ) {}
55
+ public function uasort (callable $ callback ) {}
56
56
57
57
/** @return bool */
58
- public function uksort (callable $ cmp_function ) {}
58
+ public function uksort (callable $ callback ) {}
59
59
60
60
/** @return bool */
61
61
public function natsort () {}
@@ -64,7 +64,7 @@ public function natsort() {}
64
64
public function natcasesort () {}
65
65
66
66
/** @return void */
67
- public function unserialize (string $ serialized ) {}
67
+ public function unserialize (string $ data ) {}
68
68
69
69
/** @return string */
70
70
public function serialize () {}
@@ -79,7 +79,7 @@ public function __unserialize(array $data) {}
79
79
public function getIterator () {}
80
80
81
81
/** @return array|null */
82
- public function exchangeArray (array |object $ input ) {}
82
+ public function exchangeArray (array |object $ array ) {}
83
83
84
84
/** @return void */
85
85
public function setIteratorClass (string $ iteratorClass ) {}
@@ -96,32 +96,32 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
96
96
public function __construct (array |object $ array = [], int $ flags = 0 ) {}
97
97
98
98
/**
99
- * @param string|int $index
99
+ * @param string|int $key
100
100
* @return bool
101
101
* @implementation-alias ArrayObject::offsetExists
102
102
*/
103
- public function offsetExists ($ index ) {}
103
+ public function offsetExists ($ key ) {}
104
104
105
105
/**
106
- * @param string|int $index
106
+ * @param string|int $key
107
107
* @return mixed
108
108
* @implementation-alias ArrayObject::offsetGet
109
109
*/
110
- public function offsetGet ($ index ) {}
110
+ public function offsetGet ($ key ) {}
111
111
112
112
/**
113
- * @param string|int $index
113
+ * @param string|int $key
114
114
* @return void
115
115
* @implementation-alias ArrayObject::offsetSet
116
116
*/
117
- public function offsetSet ($ index , mixed $ value ) {}
117
+ public function offsetSet ($ key , mixed $ value ) {}
118
118
119
119
/**
120
- * @param string|int $index
120
+ * @param string|int $key
121
121
* @return void
122
122
* @implementation-alias ArrayObject::offsetUnset
123
123
*/
124
- public function offsetUnset ($ index ) {}
124
+ public function offsetUnset ($ key ) {}
125
125
126
126
/**
127
127
* @return void
@@ -157,25 +157,25 @@ public function setFlags(int $flags) {}
157
157
* @return bool
158
158
* @implementation-alias ArrayObject::asort
159
159
*/
160
- public function asort (int $ sort_flags = SORT_REGULAR ) {}
160
+ public function asort (int $ flags = SORT_REGULAR ) {}
161
161
162
162
/**
163
163
* @return bool
164
164
* @implementation-alias ArrayObject::ksort
165
165
*/
166
- public function ksort (int $ sort_flags = SORT_REGULAR ) {}
166
+ public function ksort (int $ flags = SORT_REGULAR ) {}
167
167
168
168
/**
169
169
* @return bool
170
170
* @implementation-alias ArrayObject::uasort
171
171
*/
172
- public function uasort (callable $ cmp_function ) {}
172
+ public function uasort (callable $ callback ) {}
173
173
174
174
/**
175
175
* @return bool
176
176
* @implementation-alias ArrayObject::uksort
177
177
*/
178
- public function uksort (callable $ cmp_function ) {}
178
+ public function uksort (callable $ callback ) {}
179
179
180
180
/**
181
181
* @return bool
@@ -193,7 +193,7 @@ public function natcasesort() {}
193
193
* @return void
194
194
* @implementation-alias ArrayObject::unserialize
195
195
*/
196
- public function unserialize (string $ serialized ) {}
196
+ public function unserialize (string $ data ) {}
197
197
198
198
/**
199
199
* @return string
@@ -229,7 +229,7 @@ public function next() {}
229
229
public function valid () {}
230
230
231
231
/** @return void */
232
- public function seek (int $ position ) {}
232
+ public function seek (int $ offset ) {}
233
233
234
234
/**
235
235
* @return array
0 commit comments