Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7fc2f59

Browse files
committed
[Translator] fix MessageCatalogueInterface::getFallbackCatalogue that can return null
also use inheritdoc for the implementation
1 parent f749160 commit 7fc2f59

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

MessageCatalogue.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,7 @@ public function addFallbackCatalogue(MessageCatalogueInterface $catalogue)
204204
}
205205

206206
/**
207-
* Gets the fallback catalogue.
208-
*
209-
* @return MessageCatalogueInterface A MessageCatalogueInterface instance
207+
* {@inheritdoc}
210208
*
211209
* @api
212210
*/

MessageCatalogueInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function addFallbackCatalogue(MessageCatalogueInterface $catalogue);
146146
/**
147147
* Gets the fallback catalogue.
148148
*
149-
* @return MessageCatalogueInterface A MessageCatalogueInterface instance
149+
* @return MessageCatalogueInterface|null A MessageCatalogueInterface instance or null when no fallback has been set
150150
*
151151
* @api
152152
*/

0 commit comments

Comments
 (0)