Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
@@ -12,8 +12,6 @@
namespace Symfony\Component\HttpKernel\Exception;
/**
* TooManyRequestsHttpException.
*
* @author Ben Ramsey <ben@benramsey.com>
*
* @see http://tools.ietf.org/html/rfc6585
@@ -21,8 +19,6 @@ namespace Symfony\Component\HttpKernel\Exception;
class TooManyRequestsHttpException extends HttpException
{
/**
* Constructor.
*
* @param int|string $retryAfter The number of seconds or HTTP-date after which the request may be retried
* @param string $message The internal exception message
* @param \Exception $previous The previous exception
@@ -30,9 +26,9 @@ class TooManyRequestsHttpException extends HttpException
*/
public function __construct($retryAfter = null, $message = null, \Exception $previous = null, $code = 0)
{
$headers = array();
$headers = [];
if ($retryAfter) {
$headers = array('Retry-After' => $retryAfter);
$headers = ['Retry-After' => $retryAfter];
}
parent::__construct(429, $message, $previous, $headers, $code);