@@ -130,18 +130,16 @@ public function reverse();
130
130
*
131
131
* The callback's return values are discarded.
132
132
*
133
- * @template TMode of int-mask-of<DictionaryInterface::*>
134
- *
135
133
* @param (callable(TValue, TValue|null $next, TValue|null $prev): mixed)|(callable(TKey, TKey|null $next, TKey|null $prev): mixed)|(callable(array{TKey,TValue}, array{TKey,TValue}|null $next, array{TKey,TValue}|null $prev): mixed) $callback
136
134
* @phpstan-param (
137
- * TMode is 3|11|19
135
+ * $mode is 3|11|19
138
136
* ? (callable(array{TKey,TValue}, array{TKey,TValue}|null $next, array{TKey,TValue}|null $prev): mixed)
139
- * : (TMode is 2|10|18
137
+ * : ($mode is 2|10|18
140
138
* ? (callable(TKey, TKey|null $next, TKey|null $prev): mixed)
141
139
* : (callable(TValue, TValue|null $next, TValue|null $prev): mixed)
142
140
* )
143
141
* ) $callback
144
- * @param TMode $mode
142
+ * @param int-mask-of<DictionaryInterface::*> $mode
145
143
* @return $this
146
144
*/
147
145
public function forEach (callable $ callback , int $ mode = DictionaryInterface::CALLBACK_USE_VALUE );
@@ -150,38 +148,35 @@ public function forEach(callable $callback, int $mode = DictionaryInterface::CAL
150
148
* Pass each item in the collection to a callback and populate a new
151
149
* collection with its return values
152
150
*
153
- * @template TMode of int-mask-of<DictionaryInterface::*>
154
151
* @template TReturn of TValue
155
152
*
156
153
* @param (callable(TValue, TValue|null $next, TValue|null $prev): TReturn)|(callable(TKey, TKey|null $next, TKey|null $prev): TReturn)|(callable(array{TKey,TValue}, array{TKey,TValue}|null $next, array{TKey,TValue}|null $prev): TReturn) $callback
157
154
* @phpstan-param (
158
- * TMode is 3|11|19
155
+ * $mode is 3|11|19
159
156
* ? (callable(array{TKey,TValue}, array{TKey,TValue}|null $next, array{TKey,TValue}|null $prev): TReturn)
160
- * : (TMode is 2|10|18
157
+ * : ($mode is 2|10|18
161
158
* ? (callable(TKey, TKey|null $next, TKey|null $prev): TReturn)
162
159
* : (callable(TValue, TValue|null $next, TValue|null $prev): TReturn)
163
160
* )
164
161
* ) $callback
165
- * @param TMode $mode
162
+ * @param int-mask-of<DictionaryInterface::*> $mode
166
163
* @return static<TKey,TReturn>
167
164
*/
168
165
public function map (callable $ callback , int $ mode = DictionaryInterface::CALLBACK_USE_VALUE );
169
166
170
167
/**
171
168
* Reduce the collection to items that satisfy a callback
172
169
*
173
- * @template TMode of int-mask-of<DictionaryInterface::*>
174
- *
175
170
* @param (callable(TValue, TValue|null $next, TValue|null $prev): bool)|(callable(TKey, TKey|null $next, TKey|null $prev): bool)|(callable(array{TKey,TValue}, array{TKey,TValue}|null $next, array{TKey,TValue}|null $prev): bool) $callback
176
171
* @phpstan-param (
177
- * TMode is 3|11|19
172
+ * $mode is 3|11|19
178
173
* ? (callable(array{TKey,TValue}, array{TKey,TValue}|null $next, array{TKey,TValue}|null $prev): bool)
179
- * : (TMode is 2|10|18
174
+ * : ($mode is 2|10|18
180
175
* ? (callable(TKey, TKey|null $next, TKey|null $prev): bool)
181
176
* : (callable(TValue, TValue|null $next, TValue|null $prev): bool)
182
177
* )
183
178
* ) $callback
184
- * @param TMode $mode
179
+ * @param int-mask-of<DictionaryInterface::*> $mode
185
180
* @return static
186
181
*/
187
182
public function filter (callable $ callback , int $ mode = DictionaryInterface::CALLBACK_USE_VALUE );
@@ -190,19 +185,17 @@ public function filter(callable $callback, int $mode = DictionaryInterface::CALL
190
185
* Get the first item that satisfies a callback, or null if there is no such
191
186
* item in the collection
192
187
*
193
- * @template TMode of int-mask-of<DictionaryInterface::*>
194
- *
195
188
* @param (callable(TValue, TValue|null $next, TValue|null $prev): bool)|(callable(TKey, TKey|null $next, TKey|null $prev): bool)|(callable(array{TKey,TValue}, array{TKey,TValue}|null $next, array{TKey,TValue}|null $prev): bool) $callback
196
189
* @phpstan-param (
197
- * TMode is 3|11|19
190
+ * $mode is 3|11|19
198
191
* ? (callable(array{TKey,TValue}, array{TKey,TValue}|null $next, array{TKey,TValue}|null $prev): bool)
199
- * : (TMode is 2|10|18
192
+ * : ($mode is 2|10|18
200
193
* ? (callable(TKey, TKey|null $next, TKey|null $prev): bool)
201
194
* : (callable(TValue, TValue|null $next, TValue|null $prev): bool)
202
195
* )
203
196
* ) $callback
204
- * @param TMode $mode
205
- * @return (TMode is 16|17|18|19 ? TKey : TValue)|null
197
+ * @param int-mask-of<DictionaryInterface::*> $mode
198
+ * @return ($mode is 16|17|18|19 ? TKey : TValue)|null
206
199
*/
207
200
public function find (callable $ callback , int $ mode = DictionaryInterface::CALLBACK_USE_VALUE | DictionaryInterface::FIND_VALUE );
208
201
0 commit comments