Skip to content

Commit

Permalink
Merge pull request #14 from bavix/develop
Browse files Browse the repository at this point in the history
add support laravel-walelt:^9.0
  • Loading branch information
rez1dent3 authored May 2, 2022
2 parents 9a6cd54 + 7765309 commit f9b9b28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 6 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### [5.0.0] - 2022-05-02
### Added
- add support laravel-wallet ^9.0

## [4.2.0] - 2022-02-08
### Added
- add support laravel-wallet ^8.0
Expand Down Expand Up @@ -55,7 +59,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add class provider `RateServiceProvider`.
- Add class rate for laravel-wallet `Rate`.

[Unreleased]: https://github.com/bavix/laravel-wallet-swap/compare/4.2.0...develop
[Unreleased]: https://github.com/bavix/laravel-wallet-swap/compare/5.0.0...develop
[5.0.0]: https://github.com/bavix/laravel-wallet-swap/compare/4.2.0...5.0.0
[4.2.0]: https://github.com/bavix/laravel-wallet-swap/compare/4.1.0...4.2.0
[4.1.0]: https://github.com/bavix/laravel-wallet-swap/compare/4.0.0...4.1.0
[4.0.0]: https://github.com/bavix/laravel-wallet-swap/compare/3.0.0...4.0.0
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"require": {
"php": "^8.0",
"bavix/laravel-wallet": "^8.0",
"bavix/laravel-wallet": "^9.0",
"florianv/laravel-swap": "^2.2",
"nyholm/psr7": "^1.3",
"php-http/curl-client": "^2.1",
Expand Down
4 changes: 1 addition & 3 deletions src/SwapExchangeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public function __construct(
}

/**
* @param float|int|string $amount
*
* @throws CacheException
* @throws NonBreakingInvalidArgumentException
* @throws UnsupportedExchangeQueryException
Expand All @@ -38,7 +36,7 @@ public function __construct(
* @throws SwapException
* @throws SwapRuntimeException
*/
public function convertTo(string $fromCurrency, string $toCurrency, $amount): string
public function convertTo(string $fromCurrency, string $toCurrency, float|int|string $amount): string
{
return $this->mathService->mul($this->currencyService->rate($fromCurrency, $toCurrency), $amount);
}
Expand Down

0 comments on commit f9b9b28

Please sign in to comment.