From aff53ade5ca87236cb01c8027ff439edd18b39d5 Mon Sep 17 00:00:00 2001 From: Olivier Dolbeau Date: Thu, 26 Dec 2019 16:21:09 +0100 Subject: [PATCH] Update symfony-storage requirement --- Service/StorageService.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Service/StorageService.php b/Service/StorageService.php index 29bff0e9..b4ecb171 100644 --- a/Service/StorageService.php +++ b/Service/StorageService.php @@ -152,7 +152,7 @@ public function syncAndFetchMessage(string $locale, string $domain, string $key) * local storage and then move on to the remote storages. * {@inheritdoc} */ - public function get(string $locale, string $domain, string $key): MessageInterface + public function get(string $locale, string $domain, string $key): ?MessageInterface { foreach ([$this->localStorages, $this->remoteStorages] as $storages) { $value = $this->getFromStorages($storages, $locale, $domain, $key); diff --git a/composer.json b/composer.json index 70b67795..bf9f9497 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "symfony/finder": "^3.4 || ^4.3 || ^5.0", "symfony/intl": "^3.4 || ^4.3 || ^5.0", - "php-translation/symfony-storage": "^2.0", + "php-translation/symfony-storage": "^2.1", "php-translation/extractor": "^2.0", "nyholm/nsa": "^1.1", "twig/twig": "^2.11 || ^3.0"