ソースを参照

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();
 				}
 			}