Skip to content

Commit 11ceaf8

Browse files
Merge branch '3.4' into 4.3
* 3.4: Fix inconsistent return points. [Security/Core] UserInterface::getPassword() can return null [Router] Fix TraceableUrlMatcher behaviour with trailing slash
2 parents 756fc8c + 1b9eee9 commit 11ceaf8

File tree

7 files changed

+16
-4
lines changed

7 files changed

+16
-4
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
@@ -140,6 +140,8 @@ protected function generateDataForLocale(BundleEntryReaderInterface $reader, $te
140140

141141
return $data;
142142
}
143+
144+
return null;
143145
}
144146

145147
/**

Data/Generator/RegionDataGenerator.php

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

111111
return $data;
112112
}
113+
114+
return null;
113115
}
114116

115117
/**

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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function format(\DateTime $dateTime)
101101
* @param string $dateChars The date characters to be replaced with a formatted ICU value
102102
* @param \DateTime $dateTime A DateTime object to be used to generate the formatted value
103103
*
104-
* @return string The formatted value
104+
* @return string|null The formatted value
105105
*
106106
* @throws NotImplementedException When it encounters a not implemented date character
107107
*/
@@ -123,6 +123,8 @@ public function formatReplace($dateChars, $dateTime)
123123
if (false !== strpos($this->notImplementedChars, $dateChars[0])) {
124124
throw new NotImplementedException(sprintf('Unimplemented date character "%s" in format "%s"', $dateChars[0], $this->pattern));
125125
}
126+
127+
return null;
126128
}
127129

128130
/**
@@ -196,6 +198,8 @@ public function getReverseMatchingRegExp($pattern)
196198

197199
return "(?P<$captureName>".$transformer->getReverseMatchingRegExp($length).')';
198200
}
201+
202+
return null;
199203
}, $escapedPattern);
200204

201205
return $reverseMatchingRegExp;

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)