Skip to content

Commit

Permalink
Synchronize substr() parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 12, 2020
1 parent 4ce285b commit 0c87f16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ parameters:
path: src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php

-
message: "#^Parameter \\#1 \\$str of function substr expects string, string\\|null given\\.$#"
message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|null given\\.$#"
count: 3
path: src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php

Expand Down
2 changes: 1 addition & 1 deletion resources/functionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11801,7 +11801,7 @@
'strtr' => ['string', 'str'=>'string', 'from'=>'string', 'to'=>'string'],
'strtr\'1' => ['string', 'str'=>'string', 'replace_pairs'=>'array'],
'strval' => ['string', 'var'=>'mixed'],
'substr' => ['string', 'str'=>'string', 'start'=>'int', 'length='=>'int'],
'substr' => ['string', 'string'=>'string', 'start'=>'int', 'length='=>'int'],
'substr_compare' => ['int|false', 'main_str'=>'string', 'str'=>'string', 'offset'=>'int', 'length='=>'int', 'case_sensitivity='=>'bool'],
'substr_count' => ['int', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int', 'length='=>'int'],
'substr_replace' => ['string|array', 'str'=>'string|array', 'repl'=>'mixed', 'start'=>'mixed', 'length='=>'mixed'],
Expand Down

0 comments on commit 0c87f16

Please sign in to comment.