File tree 6 files changed +65
-1
lines changed
6 files changed +65
-1
lines changed Original file line number Diff line number Diff line change 14
14
.gitignore export-ignore
15
15
.styleci.yml export-ignore
16
16
CHANGELOG.md export-ignore
17
+ phpstan.neon.dist export-ignore
17
18
phpunit.xml.dist export-ignore
18
19
UPGRADE.md export-ignore
Original file line number Diff line number Diff line change
1
+ name : static analysis
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - ' *.x'
8
+ pull_request :
9
+
10
+ permissions :
11
+ contents : read
12
+
13
+ jobs :
14
+ tests :
15
+ runs-on : ubuntu-22.04
16
+
17
+ strategy :
18
+ fail-fast : true
19
+
20
+ name : Static Analysis
21
+
22
+ steps :
23
+ - name : Checkout code
24
+ uses : actions/checkout@v3
25
+
26
+ - name : Setup PHP
27
+ uses : shivammathur/setup-php@v2
28
+ with :
29
+ php-version : 8.2
30
+ tools : composer:v2
31
+ coverage : none
32
+
33
+ - name : Install dependencies
34
+ uses : nick-fields/retry@v2
35
+ with :
36
+ timeout_minutes : 5
37
+ max_attempts : 5
38
+ command : composer update --prefer-stable --prefer-dist --no-interaction --no-progress
39
+
40
+ - name : Execute type checking
41
+ run : vendor/bin/phpstan
Original file line number Diff line number Diff line change 24
24
"require-dev" : {
25
25
"inertiajs/inertia-laravel" : " ^0.6.5" ,
26
26
"laravel/sanctum" : " ^3.0" ,
27
+ "livewire/livewire" : " ^2.12" ,
27
28
"mockery/mockery" : " ^1.0" ,
28
29
"orchestra/testbench" : " ^7.0|^8.0" ,
30
+ "phpstan/phpstan" : " ^1.10" ,
29
31
"phpunit/phpunit" : " ^9.3"
30
32
},
31
33
"conflict" : {
Original file line number Diff line number Diff line change
1
+ parameters:
2
+ paths:
3
+ - config
4
+ - database
5
+ - routes
6
+ - src
7
+
8
+ level: 0
9
+
10
+ ignoreErrors:
11
+ - "#Unsafe usage of new static\\(\\)#"
Original file line number Diff line number Diff line change @@ -74,13 +74,17 @@ public function boot()
74
74
$ this ->configureCommands ();
75
75
76
76
RedirectResponse::macro ('banner ' , function ($ message ) {
77
+ /** @var \Illuminate\Http\RedirectResponse $this */
78
+
77
79
return $ this ->with ('flash ' , [
78
80
'bannerStyle ' => 'success ' ,
79
81
'banner ' => $ message ,
80
82
]);
81
83
});
82
84
83
85
RedirectResponse::macro ('dangerBanner ' , function ($ message ) {
86
+ /** @var \Illuminate\Http\RedirectResponse $this */
87
+
84
88
return $ this ->with ('flash ' , [
85
89
'bannerStyle ' => 'danger ' ,
86
90
'banner ' => $ message ,
Original file line number Diff line number Diff line change 5
5
use Laravel \Fortify \FortifyServiceProvider ;
6
6
use Laravel \Jetstream \Features ;
7
7
use Laravel \Jetstream \JetstreamServiceProvider ;
8
+ use Livewire \LivewireServiceProvider ;
8
9
use Mockery ;
9
10
use Orchestra \Testbench \TestCase ;
10
11
@@ -22,7 +23,11 @@ public function tearDown(): void
22
23
23
24
protected function getPackageProviders ($ app )
24
25
{
25
- return [JetstreamServiceProvider::class, FortifyServiceProvider::class];
26
+ return [
27
+ LivewireServiceProvider::class,
28
+ JetstreamServiceProvider::class,
29
+ FortifyServiceProvider::class,
30
+ ];
26
31
}
27
32
28
33
protected function defineEnvironment ($ app )
You can’t perform that action at this time.
0 commit comments