From 3376f3cdfa6d22d1b49ee4067a99ffedf5fd817d Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 24 Jun 2021 20:34:38 +0700 Subject: [PATCH] Add ob_get_clean to impure function --- 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 5671ecdad58..8b9ad1f9081 100644 --- a/src/Psalm/Internal/Codebase/Functions.php +++ b/src/Psalm/Internal/Codebase/Functions.php @@ -411,7 +411,7 @@ public function isCallMapFunctionPure( 'header', 'header_remove', 'http_response_code', 'setcookie', // output buffer - 'ob_start', 'ob_end_clean', 'readfile', 'printf', 'var_dump', 'phpinfo', + 'ob_start', 'ob_end_clean', 'ob_get_clean', 'readfile', 'printf', 'var_dump', 'phpinfo', 'ob_implicit_flush', 'vprintf', // mcrypt