Skip to content

Commit

Permalink
master Fixing static typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kfriars committed Aug 30, 2020
1 parent e77797e commit 1cc7b9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Contracts/FormatterContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Kfriars\TranslationsManager\Contracts;

use Illuminate\Contracts\Filesystem\FileNotFoundException;
use Kfriars\TranslationsManager\Exceptions\TranslationsManagerException;

interface FormatterContract
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/TranslationsFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ protected function generateForLocale(string $referenceLocale, LocaleContract $lo
protected function generateForFile(string $referenceLocale, TranslationsFileContract $file): array
{
if ($file->errors()->contains('message', Error::FILE_NOT_TRANSLATED)) {
return $this->translator->get($file->path(), [], $referenceLocale);
return (array) $this->translator->get($file->path(), [], $referenceLocale);
}

$translations = [];
Expand Down

0 comments on commit 1cc7b9e

Please sign in to comment.