Skip to content

Commit 60f5abe

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Leverage array_is_list drop dev dependency on the HttpClient component
2 parents 4dfd217 + 94c278c commit 60f5abe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dumper/XmlDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private function addServices(\DOMElement $parent)
263263

264264
private function convertParameters(array $parameters, string $type, \DOMElement $parent, string $keyAttribute = 'key')
265265
{
266-
$withKeys = array_keys($parameters) !== range(0, \count($parameters) - 1);
266+
$withKeys = !array_is_list($parameters);
267267
foreach ($parameters as $key => $value) {
268268
$element = $this->document->createElement($type);
269269
if ($withKeys) {

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"php": ">=8.0.2",
2020
"psr/container": "^1.1|^2.0",
2121
"symfony/deprecation-contracts": "^2.1|^3.0",
22+
"symfony/polyfill-php81": "^1.22",
2223
"symfony/service-contracts": "^1.1.6|^2.0|^3.0"
2324
},
2425
"require-dev": {

0 commit comments

Comments
 (0)