Skip to content

Commit 9a2b39e

Browse files
committed
Variable $rates might not be defined
1 parent 0422af4 commit 9a2b39e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Provider/OnlineRates.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ private function loadFromOnline(): array
140140
$rows = array_map('str_getcsv', explode("\n", $contents));
141141
$headerRow = array_shift($rows);
142142
$this->validateHeaderRow($headerRow);
143+
$rates = [];
143144

144145
foreach ($rows as $row) {
145146
if (empty($row[0])) {

0 commit comments

Comments
 (0)