upgraded dependencies

This commit is contained in:
RafficMohammed
2023-01-08 01:59:16 +05:30
parent 51056e3aad
commit f9ae387337
6895 changed files with 133617 additions and 178680 deletions

View File

@@ -25,14 +25,14 @@ interface MessageCatalogueInterface
/**
* Gets the catalogue locale.
*
* @return string The locale
* @return string
*/
public function getLocale();
/**
* Gets the domains.
*
* @return array An array of domains
* @return array
*/
public function getDomains();
@@ -43,9 +43,9 @@ interface MessageCatalogueInterface
*
* @param string $domain The domain name
*
* @return array An array of messages
* @return array
*/
public function all($domain = null);
public function all(string $domain = null);
/**
* Sets a message translation.
@@ -54,7 +54,7 @@ interface MessageCatalogueInterface
* @param string $translation The messages translation
* @param string $domain The domain name
*/
public function set($id, $translation, $domain = 'messages');
public function set(string $id, string $translation, string $domain = 'messages');
/**
* Checks if a message has a translation.
@@ -62,9 +62,9 @@ interface MessageCatalogueInterface
* @param string $id The message id
* @param string $domain The domain name
*
* @return bool true if the message has a translation, false otherwise
* @return bool
*/
public function has($id, $domain = 'messages');
public function has(string $id, string $domain = 'messages');
/**
* Checks if a message has a translation (it does not take into account the fallback mechanism).
@@ -72,9 +72,9 @@ interface MessageCatalogueInterface
* @param string $id The message id
* @param string $domain The domain name
*
* @return bool true if the message has a translation, false otherwise
* @return bool
*/
public function defines($id, $domain = 'messages');
public function defines(string $id, string $domain = 'messages');
/**
* Gets a message translation.
@@ -82,9 +82,9 @@ interface MessageCatalogueInterface
* @param string $id The message id
* @param string $domain The domain name
*
* @return string The message translation
* @return string
*/
public function get($id, $domain = 'messages');
public function get(string $id, string $domain = 'messages');
/**
* Sets translations for a given domain.
@@ -92,7 +92,7 @@ interface MessageCatalogueInterface
* @param array $messages An array of translations
* @param string $domain The domain name
*/
public function replace($messages, $domain = 'messages');
public function replace(array $messages, string $domain = 'messages');
/**
* Adds translations for a given domain.
@@ -100,7 +100,7 @@ interface MessageCatalogueInterface
* @param array $messages An array of translations
* @param string $domain The domain name
*/
public function add($messages, $domain = 'messages');
public function add(array $messages, string $domain = 'messages');
/**
* Merges translations from the given Catalogue into the current one.
@@ -120,14 +120,14 @@ interface MessageCatalogueInterface
/**
* Gets the fallback catalogue.
*
* @return self|null A MessageCatalogueInterface instance or null when no fallback has been set
* @return self|null
*/
public function getFallbackCatalogue();
/**
* Returns an array of resources loaded to build this collection.
*
* @return ResourceInterface[] An array of resources
* @return ResourceInterface[]
*/
public function getResources();