Skip to content

Commit 96695eb

Browse files
committed
Static code analysis with Php Inspections (EA Extended): dead code dropped, couple bugs fixed
1 parent 7eea60f commit 96695eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DateFormatter/DateFormat/TimeZoneTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ public static function getEtcTimeZoneId($formattedTimeZone)
9494
return 'Etc/GMT'.($hours !== 0 ? $signal.$hours : '');
9595
}
9696

97-
throw new \InvalidArgumentException('The GMT time zone \'%s\' does not match with the supported formats GMT[+-]HH:MM or GMT[+-]HHMM.');
97+
throw new \InvalidArgumentException(sprintf("The GMT time zone '%s' does not match with the supported formats GMT[+-]HH:MM or GMT[+-]HHMM.", $formattedTimeZone));
9898
}
9999
}

0 commit comments

Comments
 (0)