From 9666b90e41823ba4586511e436da40406af96f4c Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 2 Mar 2022 22:59:12 +0700 Subject: [PATCH] Register openssl_sign function to impure functions openssl_sign has $signature parameter that by reference that can re-used --- src/Psalm/Internal/Codebase/Functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Codebase/Functions.php b/src/Psalm/Internal/Codebase/Functions.php index a31bebd69..f8f5b16fa 100644 --- a/src/Psalm/Internal/Codebase/Functions.php +++ b/src/Psalm/Internal/Codebase/Functions.php @@ -454,7 +454,7 @@ class Functions // 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',