1
0
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:
Arnout Boks 2022-11-04 09:05:29 +01:00 committed by GitHub
parent 8fc499e341
commit 2387d5eef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)) {