Skip to content

Commit

Permalink
Support Throwables in SystemExceptions (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
msimkunas authored Dec 21, 2023
1 parent c779404 commit 1c8adb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Exception/SystemException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php namespace Winter\Storm\Exception;

use Exception;
use Throwable;
use Winter\Storm\Html\HtmlBuilder;

/**
Expand All @@ -17,9 +17,9 @@ class SystemException extends ExceptionBase
*
* @param string $message Error message.
* @param int $code Error code.
* @param Exception $previous Previous exception.
* @param Throwable $previous Previous exception.
*/
public function __construct($message = "", $code = 0, Exception $previous = null)
public function __construct($message = "", $code = 0, Throwable $previous = null)
{
$message = HtmlBuilder::clean($message);

Expand Down

0 comments on commit 1c8adb8

Please sign in to comment.