Skip to content

Commit

Permalink
Register openssl_sign function to impure functions
Browse files Browse the repository at this point in the history
openssl_sign has $signature parameter that by reference that can re-used
  • Loading branch information
samsonasik committed Mar 2, 2022
1 parent fc2c6ab commit 9666b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Codebase/Functions.php
Expand Up @@ -454,7 +454,7 @@ public function isCallMapFunctionPure(

// well-known functions
'libxml_use_internal_errors', 'libxml_disable_entity_loader', 'curl_exec',
'mt_srand', 'openssl_pkcs7_sign',
'mt_srand', 'openssl_pkcs7_sign', 'openssl_sign',
'mt_rand', 'rand', 'random_int', 'random_bytes',
'wincache_ucache_delete', 'wincache_ucache_set', 'wincache_ucache_inc',
'class_alias',
Expand Down

0 comments on commit 9666b90

Please sign in to comment.