diff --git a/changelog.md b/changelog.md index 4c15fcf..e7cc49b 100644 --- a/changelog.md +++ b/changelog.md @@ -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 @@ -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 diff --git a/composer.json b/composer.json index 9185f0b..4638755 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/SwapExchangeService.php b/src/SwapExchangeService.php index f196f3b..41b62f9 100644 --- a/src/SwapExchangeService.php +++ b/src/SwapExchangeService.php @@ -28,8 +28,6 @@ public function __construct( } /** - * @param float|int|string $amount - * * @throws CacheException * @throws NonBreakingInvalidArgumentException * @throws UnsupportedExchangeQueryException @@ -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); }