Skip to content

Commit d2d1212

Browse files
committed
hotfix
1 parent b59f7f8 commit d2d1212

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Internal/Repository/TransactionRepository.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Bavix\Wallet\Internal\Service\JsonServiceInterface;
1010
use Bavix\Wallet\Internal\Transform\TransactionDtoTransformerInterface;
1111
use Bavix\Wallet\Models\Transaction;
12-
use function PHPUnit\Framework\assertTrue;
1312

1413
final class TransactionRepository implements TransactionRepositoryInterface
1514
{
@@ -40,14 +39,14 @@ public function insert(array $objects): void
4039
);
4140
}
4241

43-
assertTrue($this->transaction->newQuery()->insert($values));
42+
assert($this->transaction->newQuery()->insert($values) === true);
4443
}
4544

4645
public function insertOne(TransactionDtoInterface $dto): Transaction
4746
{
4847
$attributes = $this->transformer->extract($dto);
4948
$instance = $this->transaction->newInstance($attributes);
50-
assertTrue($instance->saveQuietly());
49+
assert($instance->saveQuietly() === true);
5150

5251
return $instance;
5352
}

0 commit comments

Comments
 (0)