Skip to content

Commit 7cfe408

Browse files
committed
When an array of replacements is passed to strtr() it should be an associative array of strings.
1 parent da8413c commit 7cfe408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/functionMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11804,7 +11804,7 @@
1180411804
'strtotime' => ['int|false', 'time'=>'string', 'now='=>'int'],
1180511805
'strtoupper' => ['string', 'str'=>'string'],
1180611806
'strtr' => ['string', 'str'=>'string', 'from'=>'string', 'to'=>'string'],
11807-
'strtr\'1' => ['string', 'str'=>'string', 'replace_pairs'=>'array'],
11807+
'strtr\'1' => ['string', 'str'=>'string', 'replace_pairs'=>'array<string,string>'],
1180811808
'strval' => ['string', 'var'=>'mixed'],
1180911809
'substr' => ['__benevolent<string|false>', 'string'=>'string', 'start'=>'int', 'length='=>'int'],
1181011810
'substr_compare' => ['int<-1, 1>|false', 'main_str'=>'string', 'str'=>'string', 'offset'=>'int', 'length='=>'int', 'case_sensitivity='=>'bool'],

0 commit comments

Comments
 (0)