Upgrade framework
This commit is contained in:
@@ -14,8 +14,6 @@ namespace Symfony\Component\Translation;
|
||||
use Symfony\Component\Translation\Exception\InvalidArgumentException;
|
||||
|
||||
/**
|
||||
* TranslatorBagInterface.
|
||||
*
|
||||
* @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
|
||||
*/
|
||||
interface TranslatorBagInterface
|
||||
@@ -25,9 +23,14 @@ interface TranslatorBagInterface
|
||||
*
|
||||
* @param string|null $locale The locale or null to use the default
|
||||
*
|
||||
* @return MessageCatalogueInterface
|
||||
*
|
||||
* @throws InvalidArgumentException If the locale contains invalid characters
|
||||
*/
|
||||
public function getCatalogue($locale = null);
|
||||
public function getCatalogue(string $locale = null): MessageCatalogueInterface;
|
||||
|
||||
/**
|
||||
* Returns all catalogues of the instance.
|
||||
*
|
||||
* @return MessageCatalogueInterface[]
|
||||
*/
|
||||
public function getCatalogues(): array;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user