Skip to content

Commit 396536d

Browse files
committed
Fixed central bank of czechia on windows
1 parent 685dae7 commit 396536d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Service/CentralBankOfCzechRepublic.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ private function doCreateRate(ExchangeRateQuery $exchangeQuery, DateTimeInterfac
7777
$currencyPair = $exchangeQuery->getCurrencyPair();
7878
$content = $this->request($this->buildUrl($requestedDate));
7979

80+
//Normalize line endings
81+
$content = str_replace(["\r\n", "\r"], "\n", $content);
82+
8083
$lines = explode("\n", $content);
8184

8285
if (!$date = \DateTime::createFromFormat(self::DATE_FORMAT, $this->parseDate($lines[0]))) {

0 commit comments

Comments
 (0)