Skip to content

Commit d48215c

Browse files
authored
Add Laravel 9 support (#14)
* Add Laravel 9 support * Upgrade CS Fixer config
1 parent dcc5dfc commit d48215c

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ jobs:
1616
fail-fast: true
1717
matrix:
1818
php: [7.3, 7.4, 8.0, 8.1]
19-
laravel: ["8.*"]
19+
laravel: ["8.*", "9.*"]
20+
exclude:
21+
- php: 7.3
22+
laravel: "9.*"
23+
- php: 7.4
24+
laravel: "9.*"
2025

2126
steps:
2227
- uses: actions/checkout@v2

.php_cs renamed to .php-cs-fixer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
'elseif' => true,
1010
'encoding' => true,
1111
'single_blank_line_at_eof' => true,
12-
'no_extra_consecutive_blank_lines' => true,
12+
'no_extra_blank_lines' => true,
1313
'include' => true,
1414
'blank_line_after_namespace' => true,
1515
'not_operator_with_successor_space' => true,
16-
'lowercase_constants' => true,
16+
'constant_case' => ['case' => 'lower'],
1717
'lowercase_keywords' => true,
1818
'array_syntax' => ['syntax' => 'short'],
1919
'no_unused_imports' => true
@@ -27,7 +27,7 @@
2727
__DIR__.'/tests',
2828
]);
2929

30-
return PhpCsFixer\Config::create()
30+
return (new PhpCsFixer\Config())
3131
->setFinder($finder)
3232
->setRules($fixers)
3333
->setUsingCache(false);

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^7.3|^8.0",
21-
"illuminate/auth": "^8.0",
22-
"illuminate/console": "^8.0",
23-
"illuminate/encryption": "^8.0",
24-
"illuminate/support": "^8.0",
25-
"illuminate/view": "^8.0",
20+
"php": "^7.3|^8.0.2",
21+
"illuminate/auth": "^8.0|^9.0",
22+
"illuminate/console": "^8.0|^9.0",
23+
"illuminate/encryption": "^8.0|^9.0",
24+
"illuminate/support": "^8.0|^9.0",
25+
"illuminate/view": "^8.0|^9.0",
2626
"laravel/socialite": "^5.0",
2727
"socialiteproviders/gitlab": "^3.1|^4.0",
2828
"socialiteproviders/dropbox": "^4.1"
@@ -31,8 +31,8 @@
3131
"fakerphp/faker": "^1.9.1",
3232
"mockery/mockery": "^1.4.4",
3333
"phpunit/phpunit": "^9.5.10",
34-
"orchestra/testbench": "^6.15",
35-
"friendsofphp/php-cs-fixer": "^2.16"
34+
"orchestra/testbench": "^6.15|^7.4",
35+
"friendsofphp/php-cs-fixer": "^2.16|^3.8"
3636
},
3737
"autoload": {
3838
"psr-4": {

tests/Unit/IdentityLinkTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Oneofftech\Identities\Facades\Identity;
77
use Illuminate\Foundation\Testing\DatabaseMigrations;
88
use InvalidArgumentException;
9-
use Illuminate\Support\Facades\View;
109
use Illuminate\View\Component;
1110
use Oneofftech\Identities\View\Components\IdentityLink;
1211

0 commit comments

Comments
 (0)