Augmentation vers version 3.3.0
This commit is contained in:
@@ -26,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);
|
||||
|
||||
Reference in New Issue
Block a user