Skip to content

Commit 8244538

Browse files
authored
Merge pull request #393 from bavix/looping
Looping
2 parents 46e0af0 + f2d93eb commit 8244538

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

changelog.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [6.2.1] - 2021-11-02
10+
### Fixed
11+
- Fix looping for old configs. #387 @AbdullahFaqeir, #391 @Hussam3bd @alexstewartja
12+
913
## [6.2.0] - 2021-10-29
1014
### Added
1115
- ECS
@@ -667,7 +671,8 @@ The operation is now executed in the transaction and updates the new `refund` fi
667671
- Exceptions: AmountInvalid, BalanceIsEmpty.
668672
- Models: Transfer, Transaction.
669673

670-
[Unreleased]: https://github.com/bavix/laravel-wallet/compare/6.2.0...develop
674+
[Unreleased]: https://github.com/bavix/laravel-wallet/compare/6.2.1...develop
675+
[6.2.1]: https://github.com/bavix/laravel-wallet/compare/6.2.0...6.2.1
671676
[6.2.0]: https://github.com/bavix/laravel-wallet/compare/6.1.0...6.2.0
672677
[6.1.0]: https://github.com/bavix/laravel-wallet/compare/6.0.4...6.1.0
673678
[6.0.4]: https://github.com/bavix/laravel-wallet/compare/6.0.3...6.0.4

src/Simple/BrickMath.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44

55
namespace Bavix\Wallet\Simple;
66

7+
use Bavix\Wallet\Interfaces\Mathable;
78
use Bavix\Wallet\Services\MathService;
89

910
/**
1011
* @deprecated
1112
* @see MathService
1213
*/
13-
class BrickMath extends MathService
14+
class BrickMath extends MathService implements Mathable
1415
{
1516
}

src/WalletServiceProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ private function legacySingleton(): void
128128
$this->app->singleton(Rateable::class, config('wallet.package.rateable', Rate::class));
129129
$this->app->singleton(Storable::class, config('wallet.package.storable', Store::class));
130130

131-
$this->app->alias(MathInterface::class, Mathable::class);
132-
$this->app->alias(MathInterface::class, BrickMath::class);
131+
$this->app->singleton(Mathable::class, BrickMath::class);
133132

134133
$this->app->singleton(DbService::class, config('wallet.services.db', DbService::class));
135134
$this->app->singleton(LockService::class, config('wallet.services.lock', LockService::class));

tests/SingletonTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function testStorable(): void
5656

5757
public function testMathable(): void
5858
{
59-
self::assertEquals($this->getRefId(Mathable::class), $this->getRefId(MathInterface::class));
59+
self::assertEquals($this->getRefId(Mathable::class), $this->getRefId(Mathable::class));
6060
}
6161

6262
public function testMathInterface(): void

0 commit comments

Comments
 (0)