diff --git a/lib/Skeleton/Transaction/Log.php b/lib/Skeleton/Transaction/Log.php index 7175c1b..5eda3c1 100644 --- a/lib/Skeleton/Transaction/Log.php +++ b/lib/Skeleton/Transaction/Log.php @@ -89,7 +89,7 @@ public static function get_last_successful() { * Create log. */ public static function create( - \Transaction $transaction, bool $failed, string $output = '', ?\Exception $exception = null, + \Transaction $transaction, bool $failed, string $output = '', ?\Throwable $t = null, ?string $date = null ): self { @@ -98,8 +98,8 @@ public static function create( $log->failed = $failed; $log->output = $output; - if (isset($exception) === true) { - $log->exception = print_r($exception, true); + if (isset($t) === true) { + $log->exception = print_r($t, true); } if ($date !== null) {