From 4301f83475fc5febe65127584134037c3130552d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=CC=88nther=20Debrauwer?= Date: Thu, 26 Oct 2023 08:09:02 +0200 Subject: [PATCH] Fix php deprecation warning in string concatenation --- src/Translations/TranslationManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Translations/TranslationManager.php b/src/Translations/TranslationManager.php index d411832..251ccdf 100644 --- a/src/Translations/TranslationManager.php +++ b/src/Translations/TranslationManager.php @@ -83,8 +83,8 @@ protected function getVendorTranslations(string $locale) $directories = collect($this->filesystem->directories($this->getLangPath('vendor'))); $translations = $directories->mapWithKeys(function ($directory) use ($locale) { - $phpTranslations = $this->getPhpTranslations("${directory}/{$locale}"); - $jsonTranslations = $this->getJsonTranslations("${directory}/{$locale}.json"); + $phpTranslations = $this->getPhpTranslations("{$directory}/{$locale}"); + $jsonTranslations = $this->getJsonTranslations("{$directory}/{$locale}.json"); return [basename($directory) => array_merge($phpTranslations, $jsonTranslations)]; })->toArray();