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