summaryrefslogtreecommitdiff
path: root/src/Errors/UnauthorizedError.php
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2026-04-16 15:39:21 +0200
committerDaniel Weipert <git@mail.dweipert.de>2026-04-16 15:39:21 +0200
commit21593231a0e7de30004a8b4530047b4ad4680db7 (patch)
tree7a86fd3e99bd37631c48474bcdfb267d0763b4af /src/Errors/UnauthorizedError.php
parentf3202403339e94f0186b9ff19e83c7a32fdad198 (diff)
implement against elementHEADmain
Diffstat (limited to 'src/Errors/UnauthorizedError.php')
-rwxr-xr-xsrc/Errors/UnauthorizedError.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Errors/UnauthorizedError.php b/src/Errors/UnauthorizedError.php
index cd9981f..e164597 100755
--- a/src/Errors/UnauthorizedError.php
+++ b/src/Errors/UnauthorizedError.php
@@ -7,9 +7,9 @@ use Symfony\Component\HttpFoundation\Response;
class UnauthorizedError extends Exception
{
- public function __construct()
+ public function __construct(string $message = "Unauthorized")
{
- parent::__construct(ErrorCode::FORBIDDEN, "Unauthorized", Response::HTTP_UNAUTHORIZED);
+ parent::__construct(ErrorCode::FORBIDDEN, $message, Response::HTTP_UNAUTHORIZED);
}
public function getAdditionalData(): array