@@ -211,48 +211,48 @@ function preg_match_all($pattern, $subject, &$matches = [], int $flags = 1, int
211
211
function preg_match($pattern, $subject, &$matches = [], int $flags = 0, int $offset = 0) {}
212
212
213
213
/**
214
- * @param string|string[] $pattern
215
- * @param callable(string[] ):string $callback
216
- * @param string|array<string|int|float > $subject
214
+ * @param string|array<mixed> $pattern
215
+ * @param callable(array<int| string, string> ):string $callback
216
+ * @param string|array<mixed > $subject
217
217
* @param int $count
218
218
* @param-out 0|positive-int $count
219
219
* @return ($subject is array ? list<string>|null : string|null)
220
220
*/
221
221
function preg_replace_callback($pattern, $callback, $subject, int $limit = -1, &$count = null, int $flags = 0) {}
222
222
223
223
/**
224
- * @param string|string[] $pattern
225
- * @param string|array<string|int|float > $replacement
226
- * @param string|array<string|int|float > $subject
224
+ * @param string|array<mixed> $pattern
225
+ * @param string|array<mixed > $replacement
226
+ * @param string|array<mixed > $subject
227
227
* @param int $count
228
228
* @param-out 0|positive-int $count
229
229
* @return ($subject is array ? list<string>|null : string|null)
230
230
*/
231
231
function preg_replace($pattern, $replacement, $subject, int $limit = -1, &$count = null) {}
232
232
233
233
/**
234
- * @param string|string[] $pattern
235
- * @param string|array<string|int|float > $replacement
236
- * @param string|array<string|int|float > $subject
234
+ * @param string|array<mixed> $pattern
235
+ * @param string|array<mixed > $replacement
236
+ * @param string|array<mixed > $subject
237
237
* @param int $count
238
238
* @param-out 0|positive-int $count
239
239
* @return ($subject is array ? list<string> : string|null)
240
240
*/
241
241
function preg_filter($pattern, $replacement, $subject, int $limit = -1, &$count = null) {}
242
242
243
243
/**
244
- * @param array<string >|string $search
245
- * @param array<string >|string $replace
246
- * @param array<string >|string $subject
244
+ * @param array<mixed >|string $search
245
+ * @param array<mixed >|string $replace
246
+ * @param array<mixed >|string $subject
247
247
* @param-out int $count
248
248
* @return list<string>|string
249
249
*/
250
250
function str_replace($search, $replace, $subject, int &$count = null) {}
251
251
252
252
/**
253
- * @param array<string >|string $search
254
- * @param array<string >|string $replace
255
- * @param array<string >|string $subject
253
+ * @param array<mixed >|string $search
254
+ * @param array<mixed >|string $replace
255
+ * @param array<mixed >|string $subject
256
256
* @param-out int $count
257
257
* @return list<string>|string
258
258
*/
0 commit comments