mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-02 21:19:58 +09:00
Update to laravel 7
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user