From 426d20e56706fcaddbad6af7f10a8191f3e4610e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20S=C5=82omka?= Date: Mon, 18 Sep 2023 11:15:00 +0200 Subject: [PATCH] Fixed tests usues --- src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php b/src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php index 40d39cd9ad..63adea9b31 100644 --- a/src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php +++ b/src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php @@ -136,7 +136,7 @@ private function processEvent( $languageCode ) : []; - $tokenValues[$languageCode] = array_merge($tokenValues[$languageCode], $values); + $tokenValues[$languageCode] = array_merge($tokenValues[$languageCode] ?? [], $values); } return $tokenValues;