Skip to content

Commit

Permalink
Currently rate fetching as method
Browse files Browse the repository at this point in the history
  • Loading branch information
orkhanahmadov committed Sep 22, 2020
1 parent 8f441ff commit 1a4bdcf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
}
],
"require": {
"php": ">=7.2.0",
"php": "^7.2",
"ext-simplexml": "*",
"ext-bcmath": "*",
"guzzlehttp/guzzle": "^6.3"
"guzzlehttp/guzzle": "^6.5|^7.0"
},
"require-dev": {
"blastcloud/guzzler": "^1.4",
"phpunit/phpunit": "^7.0|^8.0"
"blastcloud/guzzler": "^1.6|^2.0",
"phpunit/phpunit": "^7.0|^8.0|^9.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/CBAR.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function __call(string $currency, array $arguments)
throw new CurrencyException('Currency with '.$currency.' code is not available');
}

return $this->$currency * $arguments[0];
return $this->$currency * ($arguments[0] ?? 1);
}

/**
Expand Down

0 comments on commit 1a4bdcf

Please sign in to comment.