Update to laravel 7

This commit is contained in:
KodeStar
2022-03-10 11:54:29 +00:00
parent 61a5a1a8b0
commit f9a19fce91
7170 changed files with 274189 additions and 283773 deletions

View File

@@ -20,19 +20,19 @@ use Symfony\Component\Config\Resource\ResourceInterface;
*/
interface MessageCatalogueInterface
{
const INTL_DOMAIN_SUFFIX = '+intl-icu';
public const INTL_DOMAIN_SUFFIX = '+intl-icu';
/**
* 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();