From 6aa36d449c0fb1f2eb74850d9b9c8586a8a2f7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D?= Date: Sat, 25 May 2019 02:00:22 +0200 Subject: [PATCH] * [MOD] Improved stacktrace by anonymizing function's arguments data. Thanks to @cRaZy-bisCuiT for the feedback. Closes #1339 + [MOD] Bump version & build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rubén D --- lib/BaseFunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/BaseFunctions.php b/lib/BaseFunctions.php index 4dfd5a96..dacd2950 100644 --- a/lib/BaseFunctions.php +++ b/lib/BaseFunctions.php @@ -121,9 +121,9 @@ function formatStackTrace(Throwable $e) $function = $trace['function']; } - if (!empty($trace['args'])) { - $args = []; + $args = []; + if (!empty($trace['args'])) { foreach ($trace['args'] as $arg) { $type = ucfirst(gettype($arg));