File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 54
54
}
55
55
},
56
56
"scripts" : {
57
+ "post-autoload-dump" : " @php ./vendor/bin/testbench package:discover --ansi" ,
57
58
"analyse" : " vendor/bin/phpstan analyse" ,
58
59
"test" : " vendor/bin/pest" ,
59
- "test-coverage" : " vendor/bin/pest --coverage"
60
+ "test-coverage" : " vendor/bin/pest --coverage" ,
61
+ "format" : " vendor/bin/pint"
60
62
},
61
63
"config" : {
62
64
"sort-packages" : true ,
Original file line number Diff line number Diff line change 4
4
5
5
use CodebarAg \Bexio \Dto \Invoices \InvoiceDTO ;
6
6
use Exception ;
7
- use Illuminate \Support \Collection ;
8
7
use Saloon \Contracts \Body \HasBody ;
9
8
use Saloon \Enums \Method ;
10
9
use Saloon \Http \Request ;
@@ -30,7 +29,7 @@ public function resolveEndpoint(): string
30
29
public function defaultBody (): array
31
30
{
32
31
if ($ this ->invoice ) {
33
- $ invoice = new Collection ($ this ->invoice ->toArray ());
32
+ $ invoice = new collect ($ this ->invoice ->toArray ());
34
33
35
34
return $ this ->filterInvoice ($ invoice );
36
35
}
You can’t perform that action at this time.
0 commit comments