Skip to content

Commit 49c7d14

Browse files
wouterjnicolas-grekas
authored andcommitted
Add remaining missing return types to safe methods
1 parent 0cc4ef7 commit 49c7d14

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Data/Generator/AbstractDataGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ public function generateData(GeneratorConfig $config): void
9595
*/
9696
abstract protected function scanLocales(LocaleScanner $scanner, string $sourceDir): array;
9797

98-
abstract protected function compileTemporaryBundles(BundleCompilerInterface $compiler, string $sourceDir, string $tempDir);
98+
abstract protected function compileTemporaryBundles(BundleCompilerInterface $compiler, string $sourceDir, string $tempDir): void;
9999

100-
abstract protected function preGenerate();
100+
abstract protected function preGenerate(): void;
101101

102102
abstract protected function generateDataForLocale(BundleEntryReaderInterface $reader, string $tempDir, string $displayLocale): ?array;
103103

Data/Util/ArrayAccessibleResourceBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(\ResourceBundle $bundleImpl)
3232
$this->bundleImpl = $bundleImpl;
3333
}
3434

35-
public function get(int|string $offset)
35+
public function get(int|string $offset): mixed
3636
{
3737
$value = $this->bundleImpl->get($offset);
3838

Data/Util/RecursiveArrayAccess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class RecursiveArrayAccess
2222
{
23-
public static function get(mixed $array, array $indices)
23+
public static function get(mixed $array, array $indices): mixed
2424
{
2525
foreach ($indices as $index) {
2626
// Use array_key_exists() for arrays, isset() otherwise

0 commit comments

Comments
 (0)