Skip to content
Permalink
Browse files

Anything calling rand/mt_rand can’t be pure

  • Loading branch information...
muglug committed Aug 30, 2019
1 parent 6d07663 commit e8500e5e51955b3a2b6186a0840ad0f769225efc
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Psalm/Internal/Codebase/Functions.php
@@ -311,6 +311,7 @@ public function isCallMapFunctionPure(Codebase $codebase, string $function_id, a
// well-known functions
'libxml_use_internal_errors', 'array_map', 'curl_exec',
'mt_srand', 'openssl_pkcs7_sign', 'mysqli_select_db', 'preg_replace_callback',
'mt_rand', 'rand',
// php environment
'ini_set', 'sleep', 'usleep', 'register_shutdown_function',

0 comments on commit e8500e5

Please sign in to comment.
You can’t perform that action at this time.