Skip to content

Commit 6c8f452

Browse files
committed
[Intl] Fix compile type errors
1 parent 6f976e6 commit 6c8f452

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

Data/Generator/FallbackTrait.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,14 @@ trait FallbackTrait
2525
private $generatingFallback = false;
2626

2727
/**
28-
* @param string $tempDir
29-
* @param string $displayLocale
30-
*
31-
* @return array|null
32-
*
3328
* @see AbstractDataGenerator::generateDataForLocale()
3429
*/
35-
abstract protected function generateDataForLocale(BundleEntryReaderInterface $reader, $tempDir, $displayLocale);
30+
abstract protected function generateDataForLocale(BundleEntryReaderInterface $reader, string $tempDir, string $displayLocale): ?array;
3631

3732
/**
38-
* @param string $tempDir
39-
*
40-
* @return array|null
41-
*
4233
* @see AbstractDataGenerator::generateDataForRoot()
4334
*/
44-
abstract protected function generateDataForRoot(BundleEntryReaderInterface $reader, $tempDir);
35+
abstract protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array;
4536

4637
private function generateFallbackData(BundleEntryReaderInterface $reader, string $tempDir, string $displayLocale): array
4738
{

Data/Generator/LanguageDataGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ protected function generateDataForLocale(BundleEntryReaderInterface $reader, str
150150
*/
151151
protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array
152152
{
153+
return null;
153154
}
154155

155156
/**

Data/Generator/LocaleDataGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ protected function generateDataForLocale(BundleEntryReaderInterface $reader, str
135135
*/
136136
protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array
137137
{
138+
return null;
138139
}
139140

140141
/**

Data/Generator/RegionDataGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ protected function generateDataForLocale(BundleEntryReaderInterface $reader, str
133133
*/
134134
protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array
135135
{
136+
return null;
136137
}
137138

138139
/**

Data/Generator/ScriptDataGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ protected function generateDataForLocale(BundleEntryReaderInterface $reader, str
8686
*/
8787
protected function generateDataForRoot(BundleEntryReaderInterface $reader, string $tempDir): ?array
8888
{
89+
return null;
8990
}
9091

9192
/**

0 commit comments

Comments
 (0)