mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Mark hash_update functions as impure
This prevents Psalm from marking calls to them as UnusedFunctionCall.
This commit is contained in:
parent
8fc499e341
commit
2387d5eef0
@ -524,6 +524,9 @@ class Functions
|
||||
|
||||
//gettext
|
||||
'bindtextdomain',
|
||||
|
||||
// hash
|
||||
'hash_update', 'hash_update_file', 'hash_update_stream',
|
||||
];
|
||||
|
||||
if (in_array(strtolower($function_id), $impure_functions, true)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user