Skip to content

Commit a335ef0

Browse files
committed
[10.x] update packages
1 parent 31d1cc3 commit a335ef0

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@
3232
"ramsey/uuid": "^4.0"
3333
},
3434
"require-dev": {
35-
"brianium/paratest": "^7.0",
35+
"brianium/paratest": "^7.2",
3636
"cknow/laravel-money": "^7.1",
37-
"driftingly/rector-laravel": "^0.15",
37+
"driftingly/rector-laravel": "^0.21",
3838
"ergebnis/phpstan-rules": "^1.0",
39-
"infection/infection": "~0.26",
40-
"laravel/cashier": "^14.8",
41-
"nunomaduro/collision": "^7.0",
42-
"nunomaduro/larastan": "^2.0",
43-
"orchestra/testbench": "^8.0",
44-
"phpstan/phpstan": "^1.9",
45-
"phpunit/phpunit": "^10.0",
46-
"rector/rector": "^0.15",
47-
"symplify/easy-coding-standard": "^11.1"
39+
"infection/infection": "~0.27",
40+
"laravel/cashier": "^14.12",
41+
"nunomaduro/collision": "^7.7",
42+
"nunomaduro/larastan": "^2.6",
43+
"orchestra/testbench": "^8.5",
44+
"phpstan/phpstan": "^1.10",
45+
"phpunit/phpunit": "^10.2",
46+
"rector/rector": "^0.17",
47+
"symplify/easy-coding-standard": "^11.5"
4848
},
4949
"suggest": {
5050
"bavix/laravel-wallet-swap": "Addition to the laravel-wallet library for quick setting of exchange rates",

tests/Infra/PackageModels/TransactionMoney.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313
*/
1414
final class TransactionMoney extends \Bavix\Wallet\Models\Transaction
1515
{
16-
protected ?\Cknow\Money\Money $currency = null;
16+
private ?Money $currency = null;
1717

1818
public function getCurrencyAttribute(): Money
1919
{
20-
if ($this->currency === null) {
21-
$this->currency = \money($this->amount, $this->meta['currency'] ?? 'USD');
22-
}
20+
$this->currency ??= \money($this->amount, $this->meta['currency'] ?? 'USD');
2321

2422
return $this->currency;
2523
}

0 commit comments

Comments
 (0)