Skip to content

Commit 0856889

Browse files
Olivier DolbeauNyholm
Olivier Dolbeau
authored andcommitted
Update storage (#46)
1 parent 199499e commit 0856889

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"require": {
1212
"php": "^7.2",
13-
"php-translation/common": "^2.0",
13+
"php-translation/common": "^3.0",
1414
"symfony/translation": "^3.4 || ^4.2 || ^5.0"
1515
},
1616
"require-dev": {

src/FileStorage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __construct(TranslationWriterInterface $writer, TranslationReade
7272
/**
7373
* {@inheritdoc}
7474
*/
75-
public function get(string $locale, string $domain, string $key): MessageInterface
75+
public function get(string $locale, string $domain, string $key): ?MessageInterface
7676
{
7777
$catalogue = $this->getCatalogue($locale);
7878
$translation = $catalogue->get($key, $domain);

0 commit comments

Comments
 (0)