Merge branch 'release/1.0.1'
This commit is contained in:
commit
775d597058
3 changed files with 11 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
pipeline:
|
||||
steps:
|
||||
code-style:
|
||||
image: composer
|
||||
commands:
|
||||
|
|
|
@ -13,7 +13,7 @@ matrix:
|
|||
- FLOW_VERSION: 8.3
|
||||
PHP_VERSION: 8.1
|
||||
|
||||
pipeline:
|
||||
steps:
|
||||
functional-tests:
|
||||
image: "thecodingmachine/php:${PHP_VERSION}-v4-cli"
|
||||
environment:
|
||||
|
|
|
@ -157,7 +157,15 @@ class TranslationRequestMiddleware implements MiddlewareInterface
|
|||
\ARRAY_FILTER_USE_KEY
|
||||
);
|
||||
$result[$package] += \array_map(
|
||||
static fn($value) => $value[0]['target'],
|
||||
static function ($value) {
|
||||
if (\count($value) === 1) {
|
||||
return $value[0]['target'];
|
||||
}
|
||||
return \array_map(
|
||||
static fn ($value) => $value['target'],
|
||||
$value
|
||||
);
|
||||
},
|
||||
$matchingUnits
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue