Skip to content

Commit 7e44063

Browse files
committed
fix: MethodNotAllowedException
1 parent e9cfbd8 commit 7e44063

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Exceptions/MethodNotAllowedException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class MethodNotAllowedException extends Exception
2323
public function __construct(string $reason, $message = 'Method Not Allowed')
2424
{
2525
$this->reason = $reason;
26-
parent::__construct($message);
26+
27+
parent::__construct($message ? "$message: $reason" : $reason);
2728
}
2829
}

0 commit comments

Comments
 (0)