Skip to content

Commit 94a6aa8

Browse files
committed
rename getOriginalBalance => getOriginalBalanceAttribute
1 parent 395ae64 commit 94a6aa8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Models/Wallet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function refreshBalance(): bool
113113
}
114114

115115
/** @codeCoverageIgnore */
116-
public function getOriginalBalance(): string
116+
public function getOriginalBalanceAttribute(): string
117117
{
118118
if (method_exists($this, 'getRawOriginal')) {
119119
return (string) $this->getRawOriginal('balance', 0);

src/Services/BookkeeperService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function amount(Wallet $wallet): string
3939
} catch (RecordNotFoundException $recordNotFoundException) {
4040
$this->lockService->block(
4141
$this->getKey($wallet),
42-
fn () => $this->sync($wallet, $wallet->getOriginalBalance()),
42+
fn () => $this->sync($wallet, $wallet->getOriginalBalanceAttribute()),
4343
);
4444
}
4545

0 commit comments

Comments
 (0)