We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2b0fb3 commit 6c5eee9Copy full SHA for 6c5eee9
Cmfcmf/OpenWeatherMap/Util/Unit.php
@@ -85,7 +85,7 @@ public function getUnit()
85
if ($this->unit == 'celsius' || $this->unit == 'metric') {
86
return "°C";
87
} elseif ($this->unit == 'fahrenheit') {
88
- return 'F';
+ return '°F';
89
} else {
90
return $this->unit;
91
}
tests/Util/UnitTest.php
@@ -114,7 +114,7 @@ public function testFahrenheitFix()
114
{
115
$this->givenThereIsAUnitWithUnit("fahrenheit");
116
117
- $this->assertSame("F", $this->unit->getUnit());
+ $this->assertSame("°F", $this->unit->getUnit());
118
119
120
private function givenThereIsAUnitWithUnit($unit)
0 commit comments