Skip to content

Commit cfc0b8c

Browse files
committed
replace HTTP response status code constants with their values
1 parent b226fc2 commit cfc0b8c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Symfony/Component/HttpFoundation/Exception/ExpiredSignedUriException.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@
1111

1212
namespace Symfony\Component\HttpFoundation\Exception;
1313

14-
use Symfony\Component\HttpFoundation\Response;
1514
use Symfony\Component\HttpKernel\Attribute\WithHttpStatus;
1615

1716
/**
1817
* @author Kevin Bond <[email protected]>
1918
*/
20-
#[WithHttpStatus(Response::HTTP_FORBIDDEN)]
19+
#[WithHttpStatus(403)]
2120
final class ExpiredSignedUriException extends SignedUriException
2221
{
2322
/**

src/Symfony/Component/HttpFoundation/Exception/SignedUriException.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@
1111

1212
namespace Symfony\Component\HttpFoundation\Exception;
1313

14-
use Symfony\Component\HttpFoundation\Response;
1514
use Symfony\Component\HttpKernel\Attribute\WithHttpStatus;
1615

1716
/**
1817
* @author Kevin Bond <[email protected]>
1918
*/
20-
#[WithHttpStatus(Response::HTTP_NOT_FOUND)]
19+
#[WithHttpStatus(404)]
2120
abstract class SignedUriException extends \RuntimeException implements ExceptionInterface
2221
{
2322
}

0 commit comments

Comments
 (0)