Skip to content

Commit 5de91fa

Browse files
Merge branch '4.3' into 4.4
* 4.3: cs fix Fix inconsistent return points. [Config] Add handling for ignored keys in ArrayNode::mergeValues. Fix inconsistent return points. [Security/Core] UserInterface::getPassword() can return null [Router] Fix TraceableUrlMatcher behaviour with trailing slash Revert "bug #33092 [DependencyInjection] Improve an exception message (fabpot)"
2 parents cba52ba + 780b319 commit 5de91fa

File tree

8 files changed

+16
-8
lines changed

8 files changed

+16
-8
lines changed

Data/Generator/CurrencyDataGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ protected function generateDataForLocale(BundleEntryReaderInterface $reader, $te
9090

9191
return $data;
9292
}
93+
94+
return null;
9395
}
9496

9597
/**

Data/Generator/LanguageDataGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ protected function generateDataForLocale(BundleEntryReaderInterface $reader, $te
141141

142142
return $data;
143143
}
144+
145+
return null;
144146
}
145147

146148
/**

Data/Generator/RegionDataGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ protected function generateDataForLocale(BundleEntryReaderInterface $reader, $te
124124

125125
return $data;
126126
}
127+
128+
return null;
127129
}
128130

129131
/**

Data/Generator/ScriptDataGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ protected function generateDataForLocale(BundleEntryReaderInterface $reader, $te
7777

7878
return $data;
7979
}
80+
81+
return null;
8082
}
8183

8284
/**

DateFormatter/DateFormat/FullTransformer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ private function formatReplace(string $dateChars, \DateTime $dateTime): string
106106
if (false !== strpos($this->notImplementedChars, $dateChars[0])) {
107107
throw new NotImplementedException(sprintf('Unimplemented date character "%s" in format "%s"', $dateChars[0], $this->pattern));
108108
}
109+
110+
return '';
109111
}
110112

111113
/**
@@ -176,6 +178,8 @@ private function getReverseMatchingRegExp(string $pattern): string
176178

177179
return "(?P<$captureName>".$transformer->getReverseMatchingRegExp($length).')';
178180
}
181+
182+
return null;
179183
}, $escapedPattern);
180184

181185
return $reverseMatchingRegExp;

Locale.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,7 @@ public static function getFallback($locale): ?string
104104

105105
// Don't return default fallback for "root", "meta" or others
106106
// Normal locales have two or three letters
107-
if (\strlen($locale) < 4) {
108-
return self::$defaultFallback;
109-
}
110-
111-
return null;
107+
return \strlen($locale) < 4 ? self::$defaultFallback : null;
112108
}
113109

114110
/**

ResourceBundle/CurrencyBundle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function getFractionDigits($currency)
7878
try {
7979
return parent::getFractionDigits($currency);
8080
} catch (MissingResourceException $e) {
81-
return;
81+
return null;
8282
}
8383
}
8484

@@ -90,7 +90,7 @@ public function getRoundingIncrement($currency)
9090
try {
9191
return parent::getRoundingIncrement($currency);
9292
} catch (MissingResourceException $e) {
93-
return;
93+
return null;
9494
}
9595
}
9696

Resources/bin/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function get_icu_version_from_genrb($genrb)
6262
}
6363

6464
if (!preg_match('/ICU version ([\d\.]+)/', implode('', $output), $matches)) {
65-
return;
65+
return null;
6666
}
6767

6868
return $matches[1];

0 commit comments

Comments
 (0)