[Intl] Fix compile type errors

This commit is contained in:
Roland Franssen 2019-09-27 11:54:15 +02:00
parent b8294398cc
commit 96fae635be
5 changed files with 6 additions and 11 deletions

View File

@ -25,23 +25,14 @@ trait FallbackTrait
private $generatingFallback = false; private $generatingFallback = false;
/** /**
* @param string $tempDir
* @param string $displayLocale
*
* @return array|null
*
* @see AbstractDataGenerator::generateDataForLocale() * @see AbstractDataGenerator::generateDataForLocale()
*/ */
abstract protected function generateDataForLocale(BundleEntryReaderInterface $reader, $tempDir, $displayLocale); abstract protected function generateDataForLocale(BundleEntryReaderInterface $reader, string $tempDir, string $displayLocale): ?array;
/** /**
* @param string $tempDir
*
* @return array|null
*
* @see AbstractDataGenerator::generateDataForRoot() * @see AbstractDataGenerator::generateDataForRoot()
*/ */
abstract protected function generateDataForRoot(BundleEntryReaderInterface $reader, $tempDir); abstract protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array;
private function generateFallbackData(BundleEntryReaderInterface $reader, string $tempDir, string $displayLocale): array private function generateFallbackData(BundleEntryReaderInterface $reader, string $tempDir, string $displayLocale): array
{ {

View File

@ -150,6 +150,7 @@ class LanguageDataGenerator extends AbstractDataGenerator
*/ */
protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array
{ {
return null;
} }
/** /**

View File

@ -135,6 +135,7 @@ class LocaleDataGenerator extends AbstractDataGenerator
*/ */
protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array
{ {
return null;
} }
/** /**

View File

@ -133,6 +133,7 @@ class RegionDataGenerator extends AbstractDataGenerator
*/ */
protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array
{ {
return null;
} }
/** /**

View File

@ -86,6 +86,7 @@ class ScriptDataGenerator extends AbstractDataGenerator
*/ */
protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array
{ {
return null;
} }
/** /**