Skip to content

Commit 3ad43c9

Browse files
committed
minor symfony#61753 [HttpFoundation] replace HTTP response status code constants with their values (xabbuh)
This PR was merged into the 7.4 branch. Discussion ---------- [HttpFoundation] replace HTTP response status code constants with their values | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- cfc0b8c replace HTTP response status code constants with their values
2 parents b226fc2 + cfc0b8c commit 3ad43c9

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)