Skip to content

Commit

Permalink
Refacto
Browse files Browse the repository at this point in the history
  • Loading branch information
lennyrouanet committed Oct 11, 2022
1 parent 4230868 commit 063e232
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions component/Abstract/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

abstract class Error extends \Exception
{
function __construct(?string $detail = null)
function __construct(?string $message = null)
{
if ($detail) {
$this->message .= ' (' . $detail . ')';
if ($message) {
$this->message = $message;
}
}
}

0 comments on commit 063e232

Please sign in to comment.