File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 99use Bavix \Wallet \Internal \Service \JsonServiceInterface ;
1010use Bavix \Wallet \Internal \Transform \TransactionDtoTransformerInterface ;
1111use Bavix \Wallet \Models \Transaction ;
12- use function PHPUnit \Framework \assertTrue ;
1312
1413final 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 }
You can’t perform that action at this time.
0 commit comments