Skip to content

Commit

Permalink
Add custom base64_decode fcn mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Oct 23, 2023
1 parent 3a6e43b commit 8425cd6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generator/config/CustomPhpStanFunctionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

return [
'base64_decode' => ['string|false', 'str'=>'string', 'strict='=>'bool'], // base64_decode returns false only in strict mode https://github.com/phpstan/phpstan-src/commit/cee66721266ae05f3cc052f82391d2645d74d55f
'password_hash' => ['string|false', 'password'=>'string', 'algo'=>'int|string|null', 'options='=>'array'],
'com_load_typelib' => ['bool', 'typelib_name'=>'string', 'case_insensitive='=>'bool'], // case_insensitive is a bool
'sem_get' => ['resource|false', 'key'=>'int', 'max_acquire='=>'int', 'perm='=>'int', 'auto_release='=>'bool'], // auto_release is a bool
Expand Down

0 comments on commit 8425cd6

Please sign in to comment.