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

@@ -25,17 +25,16 @@ class TranslationReader implements TranslationReaderInterface
/**
* Loaders used for import.
*
* @var array
* @var array<string, LoaderInterface>
*/
private $loaders = [];
/**
* Adds a loader to the translation extractor.
*
* @param string $format The format of the loader
* @param LoaderInterface $loader
* @param string $format The format of the loader
*/
public function addLoader($format, LoaderInterface $loader)
public function addLoader(string $format, LoaderInterface $loader)
{
$this->loaders[$format] = $loader;
}
@@ -43,7 +42,7 @@ class TranslationReader implements TranslationReaderInterface
/**
* {@inheritdoc}
*/
public function read($directory, MessageCatalogue $catalogue)
public function read(string $directory, MessageCatalogue $catalogue)
{
if (!is_dir($directory)) {
return;

View File

@@ -22,9 +22,6 @@ interface TranslationReaderInterface
{
/**
* Reads translation messages from a directory to the catalogue.
*
* @param string $directory
* @param MessageCatalogue $catalogue
*/
public function read($directory, MessageCatalogue $catalogue);
public function read(string $directory, MessageCatalogue $catalogue);
}