Skip to content

Commit 328c366

Browse files
committed
fix: using Symfony constant instead of integer
1 parent 43686bb commit 328c366

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phpmyfaq/src/phpMyFAQ/Controller/Exception/ForbiddenException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
namespace phpMyFAQ\Controller\Exception;
2121

22+
use Symfony\Component\HttpFoundation\Response;
2223
use Symfony\Component\HttpKernel\Exception\HttpException;
2324
use Throwable;
2425

@@ -31,7 +32,7 @@ public function __construct(
3132
array $headers = [],
3233
) {
3334
parent::__construct(
34-
statusCode: 403,
35+
statusCode: Response::HTTP_FORBIDDEN,
3536
message: $message,
3637
previous: $previous,
3738
headers: $headers,

0 commit comments

Comments
 (0)