Skip to content

Commit

Permalink
Fix function signatures for preg_replace_callback[_array] for PHP 7.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
jabrandes authored and ondrejmirtes committed Dec 21, 2020
1 parent 3a08cb0 commit 432b3d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/functionMap_php74delta.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
'password_algos' => ['array<int, string>'],
'password_hash' => ['string|false', 'password'=>'string', 'algo'=>'string|null', 'options='=>'array'],
'password_needs_rehash' => ['bool', 'hash'=>'string', 'algo'=>'string|null', 'options='=>'array'],
'preg_replace_callback' => ['string|array|null', 'regex'=>'string|array', 'callback'=>'callable', 'subject'=>'string|array', 'limit='=>'int', '&w_count='=>'int', 'flags='=>'int'],
'preg_replace_callback_array' => ['string|array|null', 'pattern'=>'array<string,callable>', 'subject'=>'string|array', 'limit='=>'int', '&w_count='=>'int', 'flags='=>'int'],
'sapi_windows_set_ctrl_handler' => ['bool', 'callable'=>'callable', 'add='=>'bool'],
'ReflectionProperty::getType' => ['?ReflectionType'],
'ReflectionProperty::hasType' => ['bool'],
Expand Down

0 comments on commit 432b3d6

Please sign in to comment.