mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-08 16:59:51 +00:00
Pipeline fixes
This commit is contained in:
parent
20af766cdf
commit
3fc3f32c5f
@ -34,7 +34,7 @@ class EventType extends AbstractType
|
||||
{
|
||||
$builder
|
||||
->add('name', TextType::class, [
|
||||
'required' => true
|
||||
'required' => true,
|
||||
])
|
||||
->add('date', ChillDateTimeType::class, [
|
||||
'required' => true,
|
||||
|
@ -101,7 +101,7 @@ class PartenaireRomeAppellation
|
||||
|
||||
return $response->toArray();
|
||||
} catch (HttpExceptionInterface $exception) {
|
||||
if ($exception->getResponse()->getStatusCode() === 429) {
|
||||
if (429 === $exception->getResponse()->getStatusCode()) {
|
||||
$retryAfter = $exception->getResponse()->getHeaders(false)['retry-after'][0] ?? 1;
|
||||
sleep((int) $retryAfter);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user