From 365eb3aaea0c1ddf80f3a89130b3a4418587ab6f Mon Sep 17 00:00:00 2001 From: Peter Date: Fri, 26 May 2023 17:56:49 +0800 Subject: [PATCH] Resolving issue#32 --- src/PHPSandbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PHPSandbox.php b/src/PHPSandbox.php index 41592f2..0e7f6a5 100644 --- a/src/PHPSandbox.php +++ b/src/PHPSandbox.php @@ -7230,7 +7230,7 @@ public function __call(string $method, array $arguments){ if(method_exists($this, $renamed_method)){ return call_user_func_array([$this, $renamed_method], $arguments); } - trigger_error('Fatal error: Call to undefined method PHPSandbox::' . $method, E_ERROR); + trigger_error('Fatal error: Call to undefined method PHPSandbox::' . $method, E_USER_ERROR); return null; } }