Skip to content

Commit 136bde3

Browse files
Merge branch '7.2' into 7.3
* 7.2: [HttpClient] Fix primary_ip info when using amphp/http-client v5 [Form] Allow integer for the `calendar` option of `DateType`
2 parents 5ce5528 + e025b23 commit 136bde3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Form/Extension/Core/Type/DateType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public function configureOptions(OptionsResolver $resolver): void
313313
$resolver->setAllowedTypes('months', 'array');
314314
$resolver->setAllowedTypes('days', 'array');
315315
$resolver->setAllowedTypes('input_format', 'string');
316-
$resolver->setAllowedTypes('calendar', ['null', \IntlCalendar::class]);
316+
$resolver->setAllowedTypes('calendar', ['null', 'int', \IntlCalendar::class]);
317317

318318
$resolver->setInfo('calendar', 'The calendar to use for formatting and parsing the date. The value should be an instance of \IntlCalendar. By default, the Gregorian calendar with the default locale is used.');
319319

src/Symfony/Component/HttpClient/Internal/AmpListenerV5.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function connectionAcquired(Request $request, Connection $connection, int
6666

6767
public function requestHeaderStart(Request $request, Stream $stream): void
6868
{
69-
$host = $stream->getRemoteAddress()->toString();
69+
$host = $stream->getRemoteAddress()->getAddress();
7070
$this->info['primary_ip'] = $host;
7171

7272
if (str_contains($host, ':')) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy