Skip to content

Commit d8c2ad8

Browse files
committed
rector fix
1 parent 9d2fdc2 commit d8c2ad8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+199
-196
lines changed

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
$config->import(PHPUnitSetList::PHPUNIT_100);
1919
$config->import(SetList::CODE_QUALITY);
2020
$config->import(SetList::DEAD_CODE);
21-
$config->import(SetList::PHP_81);
21+
$config->import(SetList::PHP_82);
2222
};

src/External/Api/TransactionQuery.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Bavix\Wallet\Interfaces\Wallet;
88
use Bavix\Wallet\Models\Transaction;
99

10-
final class TransactionQuery
10+
final readonly class TransactionQuery
1111
{
1212
public const TYPE_DEPOSIT = Transaction::TYPE_DEPOSIT;
1313

@@ -18,12 +18,12 @@ final class TransactionQuery
1818
* @param array<mixed>|null $meta
1919
*/
2020
private function __construct(
21-
private readonly string $type,
22-
private readonly Wallet $wallet,
23-
private readonly float|int|string $amount,
24-
private readonly ?array $meta,
25-
private readonly bool $confirmed,
26-
private readonly ?string $uuid
21+
private string $type,
22+
private Wallet $wallet,
23+
private float|int|string $amount,
24+
private ?array $meta,
25+
private bool $confirmed,
26+
private ?string $uuid
2727
) {
2828
}
2929

src/External/Api/TransactionQueryHandler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
/**
1414
* @internal
1515
*/
16-
final class TransactionQueryHandler implements TransactionQueryHandlerInterface
16+
final readonly class TransactionQueryHandler implements TransactionQueryHandlerInterface
1717
{
1818
public function __construct(
19-
private readonly TransactionServiceInterface $transactionService,
20-
private readonly AssistantServiceInterface $assistantService,
21-
private readonly PrepareServiceInterface $prepareService,
22-
private readonly AtomicServiceInterface $atomicService
19+
private TransactionServiceInterface $transactionService,
20+
private AssistantServiceInterface $assistantService,
21+
private PrepareServiceInterface $prepareService,
22+
private AtomicServiceInterface $atomicService
2323
) {
2424
}
2525

src/External/Api/TransferQuery.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
use Bavix\Wallet\External\Contracts\ExtraDtoInterface;
88
use Bavix\Wallet\Interfaces\Wallet;
99

10-
final class TransferQuery
10+
final readonly class TransferQuery
1111
{
1212
/**
1313
* @param array<mixed>|ExtraDtoInterface|null $meta
1414
*/
1515
public function __construct(
16-
private readonly Wallet $from,
17-
private readonly Wallet $to,
18-
private readonly float|int|string $amount,
19-
private readonly array|ExtraDtoInterface|null $meta
16+
private Wallet $from,
17+
private Wallet $to,
18+
private float|int|string $amount,
19+
private array|ExtraDtoInterface|null $meta
2020
) {
2121
}
2222

src/External/Api/TransferQueryHandler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
/**
1515
* @internal
1616
*/
17-
final class TransferQueryHandler implements TransferQueryHandlerInterface
17+
final readonly class TransferQueryHandler implements TransferQueryHandlerInterface
1818
{
1919
public function __construct(
20-
private readonly AssistantServiceInterface $assistantService,
21-
private readonly TransferServiceInterface $transferService,
22-
private readonly PrepareServiceInterface $prepareService,
23-
private readonly AtomicServiceInterface $atomicService
20+
private AssistantServiceInterface $assistantService,
21+
private TransferServiceInterface $transferService,
22+
private PrepareServiceInterface $prepareService,
23+
private AtomicServiceInterface $atomicService
2424
) {
2525
}
2626

src/External/Dto/Option.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
use Bavix\Wallet\External\Contracts\OptionDtoInterface;
88

9-
final class Option implements OptionDtoInterface
9+
final readonly class Option implements OptionDtoInterface
1010
{
1111
/**
1212
* @param null|array<mixed> $meta
1313
*/
1414
public function __construct(
15-
private readonly ?array $meta,
16-
private readonly bool $confirmed = true,
17-
private readonly ?string $uuid = null
15+
private ?array $meta,
16+
private bool $confirmed = true,
17+
private ?string $uuid = null
1818
) {
1919
}
2020

src/Internal/Assembler/BalanceUpdatedEventAssembler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
use Bavix\Wallet\Internal\Service\ClockServiceInterface;
1010
use Bavix\Wallet\Models\Wallet;
1111

12-
final class BalanceUpdatedEventAssembler implements BalanceUpdatedEventAssemblerInterface
12+
final readonly class BalanceUpdatedEventAssembler implements BalanceUpdatedEventAssemblerInterface
1313
{
1414
public function __construct(
15-
private readonly ClockServiceInterface $clockService
15+
private ClockServiceInterface $clockService
1616
) {
1717
}
1818

src/Internal/Assembler/ExtraDtoAssembler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
use Bavix\Wallet\External\Contracts\ExtraDtoInterface;
88
use Bavix\Wallet\External\Dto\Extra;
99

10-
final class ExtraDtoAssembler implements ExtraDtoAssemblerInterface
10+
final readonly class ExtraDtoAssembler implements ExtraDtoAssemblerInterface
1111
{
1212
public function __construct(
13-
private readonly OptionDtoAssemblerInterface $optionDtoAssembler
13+
private OptionDtoAssemblerInterface $optionDtoAssembler
1414
) {
1515
}
1616

src/Internal/Assembler/TransactionCreatedEventAssembler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
use Bavix\Wallet\Internal\Service\ClockServiceInterface;
1010
use Bavix\Wallet\Models\Transaction;
1111

12-
final class TransactionCreatedEventAssembler implements TransactionCreatedEventAssemblerInterface
12+
final readonly class TransactionCreatedEventAssembler implements TransactionCreatedEventAssemblerInterface
1313
{
1414
public function __construct(
15-
private readonly ClockServiceInterface $clockService
15+
private ClockServiceInterface $clockService
1616
) {
1717
}
1818

src/Internal/Assembler/TransactionDtoAssembler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
use Bavix\Wallet\Internal\Service\UuidFactoryServiceInterface;
1010
use Illuminate\Database\Eloquent\Model;
1111

12-
final class TransactionDtoAssembler implements TransactionDtoAssemblerInterface
12+
final readonly class TransactionDtoAssembler implements TransactionDtoAssemblerInterface
1313
{
1414
public function __construct(
15-
private readonly UuidFactoryServiceInterface $uuidService
15+
private UuidFactoryServiceInterface $uuidService
1616
) {
1717
}
1818

0 commit comments

Comments
 (0)