From 260faee29e2cce68f39e28a640f090a01d40fe1c Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Tue, 22 Jun 2021 22:00:05 +0300 Subject: [PATCH] Mark `set_include_path()` as impure --- src/Psalm/Internal/Codebase/Functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Codebase/Functions.php b/src/Psalm/Internal/Codebase/Functions.php index ef5d15bb0db..5671ecdad58 100644 --- a/src/Psalm/Internal/Codebase/Functions.php +++ b/src/Psalm/Internal/Codebase/Functions.php @@ -457,7 +457,7 @@ public function isCallMapFunctionPure( 'set_error_handler', 'user_error', 'trigger_error', 'restore_error_handler', 'date_default_timezone_set', 'assert_options', 'setlocale', 'set_exception_handler', 'set_time_limit', 'putenv', 'spl_autoload_register', - 'spl_autoload_unregister', 'microtime', 'array_rand', + 'spl_autoload_unregister', 'microtime', 'array_rand', 'set_include_path', // logging 'openlog', 'syslog', 'error_log', 'define_syslog_variables',