Skip to content

Commit 432b3d6

Browse files
jabrandesondrejmirtes
authored andcommitted
Fix function signatures for preg_replace_callback[_array] for PHP 7.4+
1 parent 3a08cb0 commit 432b3d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

resources/functionMap_php74delta.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
'password_algos' => ['array<int, string>'],
4444
'password_hash' => ['string|false', 'password'=>'string', 'algo'=>'string|null', 'options='=>'array'],
4545
'password_needs_rehash' => ['bool', 'hash'=>'string', 'algo'=>'string|null', 'options='=>'array'],
46+
'preg_replace_callback' => ['string|array|null', 'regex'=>'string|array', 'callback'=>'callable', 'subject'=>'string|array', 'limit='=>'int', '&w_count='=>'int', 'flags='=>'int'],
47+
'preg_replace_callback_array' => ['string|array|null', 'pattern'=>'array<string,callable>', 'subject'=>'string|array', 'limit='=>'int', '&w_count='=>'int', 'flags='=>'int'],
4648
'sapi_windows_set_ctrl_handler' => ['bool', 'callable'=>'callable', 'add='=>'bool'],
4749
'ReflectionProperty::getType' => ['?ReflectionType'],
4850
'ReflectionProperty::hasType' => ['bool'],

0 commit comments

Comments
 (0)