浏览代码

Change Throwable to Exception

Ishan Vyas 5 年之前
父节点
当前提交
f43b29316b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Utility/FileLog.php

+ 2 - 2
src/Utility/FileLog.php

@@ -57,8 +57,8 @@ class FileLog {
 			if ($traceKey) {
 				try {
 					throw new Exception('Trace string', 1);
-				} catch (\Throwable $t) {
-					$data['trace_string'] = $t->getTraceAsString();
+				} catch (\Exception $e) {
+					$data['trace_string'] = $e->getTraceAsString();
 				}
 			}