Skip to content

Commit 039bd44

Browse files
ycerutonicolas-grekas
authored andcommitted
Code enhancement and cleanup
1 parent c620d2f commit 039bd44

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

DateFormatter/IntlDateFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ public function setTimeZoneId($timeZoneId)
564564
try {
565565
$this->dateTimeZone = new \DateTimeZone($timeZoneId);
566566
if ('GMT' !== $timeZoneId && $this->dateTimeZone->getName() !== $timeZoneId) {
567-
$timeZoneId = $timeZone = $this->getTimeZoneId();
567+
$timeZone = $this->getTimeZoneId();
568568
}
569569
} catch (\Exception $e) {
570570
if (PHP_VERSION_ID >= 50500 || (extension_loaded('intl') && method_exists('IntlDateFormatter', 'setTimeZone'))) {

ResourceBundle/LanguageBundle.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class LanguageBundle extends LanguageDataProvider implements LanguageBundleInter
4242
* @param string $path
4343
* @param BundleEntryReaderInterface $reader
4444
* @param LocaleDataProvider $localeProvider
45+
* @param ScriptDataProvider $scriptProvider
4546
*/
4647
public function __construct($path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider, ScriptDataProvider $scriptProvider)
4748
{

0 commit comments

Comments
 (0)