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:
parent
81a117be85
commit
9822043ca4
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user