Skip to content

Commit

Permalink
Merge pull request #57 from offline-agency/feat-upgrade-laravel-11
Browse files Browse the repository at this point in the history
Feat upgrade Laravel 11
  • Loading branch information
Giacomo92 authored May 23, 2024
2 parents ac53b25 + 6c2afb2 commit a31b822
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,27 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest]
php: [7.3, 7.4, 8.0, 8.1]
laravel: [5.8, 6.*, 7.*, 8.*, 9.*]
php: [7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
laravel: [5.8, 6.*, 7.*, 8.*, 9.*, 10.*, 11.*]
exclude:
- laravel: 9.*
php: 7.4
- laravel: 9.*
php: 7.3
- laravel: 10.*
php: 7.4
- laravel: 10.*
php: 7.3
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 7.4
- laravel: 11.*
php: 7.3
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }}

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"require": {
"php": ">=7.3",
"ext-json": "*",
"illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0",
"illuminate/support": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"guzzlehttp/guzzle": "^5.8|^6.5|7.0.1|^7.2",
"illuminate/container": "^5.8|^6.0|^7.0|^8.0|^9.0",
"illuminate/http": "^5.8|^6.0|^7.0|^8.0|^9.0"
"illuminate/container": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/http": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0"
},
"require-dev": {
"orchestra/testbench": "^3.1|^4.0|^5.0|^6.0|^7.0",
"phpstan/phpstan": "^1.7",
"phpunit/phpunit": "^5.8|^6.0|^7.0|^8.0|^9.0"
"phpunit/phpunit": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/LaravelFattureInCloudV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function setCompanyId()
private function setHeader()
{
$this->header = Http::withHeaders([
'Accept' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer '.$this->getBearer(),
]);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Fake/IssuedDocument/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getIssuedDocumentFakeDetail(
'is_marked' => $this->value($params, 'is_marked', false),
'created_at' => $this->value($params, 'created_at', date('Y-m-d H:i:s')),
'updated_at' => $this->value($params, 'updated_at', date('Y-m-d H:i:s')),
'entity' => (new Entity())->getEntityFake($params),
'entity' => (new Entity())->getEntityFake($params),
'date' => $this->value($params, 'date', date('Y-m-d')),
'number' => $this->value($params, 'number', 1),
'currency' => (new Currency())->getCurrencyFake($params),
Expand Down

0 comments on commit a31b822

Please sign in to comment.