1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

flag class_exists as impure per vimeo/psalm#3975 (#4004)

`class_exists()` interacts with PHP's autoloader feature, which allows
user-defined behaviour to take place when PHP tries to load a given
class or interface.
This commit is contained in:
SignpostMarv 2020-08-17 20:48:48 +01:00 committed by GitHub
parent 81a117be85
commit 9822043ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,6 +354,7 @@ class Functions
'mt_rand', 'rand', 'random_int', 'random_bytes',
'wincache_ucache_delete', 'wincache_ucache_set', 'wincache_ucache_inc',
'class_alias',
'class_exists', // impure by virtue of triggering autoloader
// php environment
'ini_set', 'sleep', 'usleep', 'register_shutdown_function',