Skip to content

Commit 5af0495

Browse files
committed
WIP
1 parent 45d19ee commit 5af0495

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: composer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@
5454
}
5555
},
5656
"scripts": {
57+
"post-autoload-dump": "@php ./vendor/bin/testbench package:discover --ansi",
5758
"analyse": "vendor/bin/phpstan analyse",
5859
"test": "vendor/bin/pest",
59-
"test-coverage": "vendor/bin/pest --coverage"
60+
"test-coverage": "vendor/bin/pest --coverage",
61+
"format": "vendor/bin/pint"
6062
},
6163
"config": {
6264
"sort-packages": true,

Diff for: src/Requests/Invoices/EditAnInvoiceRequest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use CodebarAg\Bexio\Dto\Invoices\InvoiceDTO;
66
use Exception;
7-
use Illuminate\Support\Collection;
87
use Saloon\Contracts\Body\HasBody;
98
use Saloon\Enums\Method;
109
use Saloon\Http\Request;
@@ -30,7 +29,7 @@ public function resolveEndpoint(): string
3029
public function defaultBody(): array
3130
{
3231
if ($this->invoice) {
33-
$invoice = new Collection($this->invoice->toArray());
32+
$invoice = new collect($this->invoice->toArray());
3433

3534
return $this->filterInvoice($invoice);
3635
}

0 commit comments

Comments
 (0)