Skip to content

Commit 995334b

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Fix quotes in exception messages
2 parents d30b50e + b61a39a commit 995334b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Data/Bundle/Compiler/GenrbCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function compile($sourcePath, $targetDir)
5555
exec($this->genrb.' --quiet -e UTF-8 -d '.$targetDir.' '.$sourcePath, $output, $status);
5656

5757
if (0 !== $status) {
58-
throw new RuntimeException(sprintf('genrb failed with status %d while compiling %s to %s.', $status, $sourcePath, $targetDir));
58+
throw new RuntimeException(sprintf('genrb failed with status %d while compiling "%s" to "%s".', $status, $sourcePath, $targetDir));
5959
}
6060
}
6161
}

Data/Util/RecursiveArrayAccess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static function get($array, array $indices)
3636
}
3737
}
3838

39-
throw new OutOfBoundsException(sprintf('The index %s does not exist.', $index));
39+
throw new OutOfBoundsException(sprintf('The index "%s" does not exist.', $index));
4040
}
4141

4242
return $array;

DateFormatter/DateFormat/TimezoneTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static function getEtcTimeZoneId(string $formattedTimeZone): string
105105
$signal = '-' === $matches['signal'] ? '+' : '-';
106106

107107
if (0 < $minutes) {
108-
throw new NotImplementedException(sprintf('It is not possible to use a GMT time zone with minutes offset different than zero (0). GMT time zone tried: %s.', $formattedTimeZone));
108+
throw new NotImplementedException(sprintf('It is not possible to use a GMT time zone with minutes offset different than zero (0). GMT time zone tried: "%s".', $formattedTimeZone));
109109
}
110110

111111
return 'Etc/GMT'.(0 !== $hours ? $signal.$hours : '');

NumberFormatter/NumberFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public function format($value, $type = self::TYPE_DEFAULT)
363363
}
364364

365365
if (self::CURRENCY === $this->style) {
366-
throw new NotImplementedException(sprintf('%s() method does not support the formatting of currencies (instance with CURRENCY style). %s.', __METHOD__, NotImplementedException::INTL_INSTALL_MESSAGE));
366+
throw new NotImplementedException(sprintf('%s() method does not support the formatting of currencies (instance with CURRENCY style). "%s".', __METHOD__, NotImplementedException::INTL_INSTALL_MESSAGE));
367367
}
368368

369369
// Only the default type is supported.

0 commit comments

Comments
 (0)