Skip to content

Commit d3c451c

Browse files
Merge branch '3.4' into 4.3
* 3.4: Fix return statements [TwigBridge] add missing dep Add false type to ChoiceListFactoryInterface::createView $label argument
2 parents d257fea + 48860ce commit d3c451c

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Data/Generator/LocaleDataGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected function generateDataForLocale(BundleEntryReaderInterface $reader, $te
7979
// Don't generate aliases, as they are resolved during runtime
8080
// Unless an alias is needed as fallback for de-duplication purposes
8181
if (isset($this->localeAliases[$displayLocale]) && !$this->generatingFallback) {
82-
return;
82+
return null;
8383
}
8484

8585
// Generate locale names for all locales that have translations in
@@ -124,7 +124,7 @@ protected function generateDataForLocale(BundleEntryReaderInterface $reader, $te
124124
$data['Names'] = array_diff($data['Names'], $fallbackData['Names']);
125125
}
126126
if (!$data['Names']) {
127-
return;
127+
return null;
128128
}
129129

130130
return $data;

ResourceBundle/CurrencyBundle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function getCurrencySymbol($currency, $displayLocale = null)
4242
try {
4343
return $this->getSymbol($currency, $displayLocale);
4444
} catch (MissingResourceException $e) {
45-
return;
45+
return null;
4646
}
4747
}
4848

@@ -54,7 +54,7 @@ public function getCurrencyName($currency, $displayLocale = null)
5454
try {
5555
return $this->getName($currency, $displayLocale);
5656
} catch (MissingResourceException $e) {
57-
return;
57+
return null;
5858
}
5959
}
6060

ResourceBundle/LanguageBundle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getLanguageName($language, $region = null, $displayLocale = null
5454
try {
5555
return $this->getName($language, $displayLocale);
5656
} catch (MissingResourceException $e) {
57-
return;
57+
return null;
5858
}
5959
}
6060

@@ -78,7 +78,7 @@ public function getScriptName($script, $language = null, $displayLocale = null)
7878
try {
7979
return $this->scriptProvider->getName($script, $displayLocale);
8080
} catch (MissingResourceException $e) {
81-
return;
81+
return null;
8282
}
8383
}
8484

ResourceBundle/LocaleBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getLocaleName($locale, $displayLocale = null)
4343
try {
4444
return $this->getName($locale, $displayLocale);
4545
} catch (MissingResourceException $e) {
46-
return;
46+
return null;
4747
}
4848
}
4949

ResourceBundle/RegionBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function getCountryName($country, $displayLocale = null)
4242
try {
4343
return $this->getName($country, $displayLocale);
4444
} catch (MissingResourceException $e) {
45-
return;
45+
return null;
4646
}
4747
}
4848

Util/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static function normalize($version, $precision)
8383
}
8484

8585
if (!preg_match('/^'.$pattern.'/', $version, $matches)) {
86-
return;
86+
return null;
8787
}
8888

8989
return $matches[0];

0 commit comments

Comments
 (0)