File tree 6 files changed +50
-54
lines changed
6 files changed +50
-54
lines changed Original file line number Diff line number Diff line change
1
+ name : PHPStan
2
+
3
+ on :
4
+ push :
5
+ paths :
6
+ - ' **.php'
7
+ - ' phpstan.neon.dist'
8
+ - ' .github/workflows/phpstan.yml'
9
+
10
+ jobs :
11
+ phpstan :
12
+ name : phpstan
13
+ runs-on : ubuntu-latest
14
+ timeout-minutes : 5
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Setup PHP
19
+ uses : shivammathur/setup-php@v2
20
+ with :
21
+ php-version : ' 8.4'
22
+ coverage : none
23
+
24
+ - name : Install composer dependencies
25
+ uses : ramsey/composer-install@v3
26
+
27
+ - name : Run PHPStan
28
+ run : ./vendor/bin/phpstan --error-format=github
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 27
27
"nunomaduro/collision" : " ^7.0|^8.0" ,
28
28
"orchestra/testbench" : " ^8.0|^9.0" ,
29
29
"phpunit/phpunit" : " ^10.5|^11.0" ,
30
- "vimeo/psalm" : " ^5.0" ,
30
+ "larastan/larastan" : " ^2.9||^3.0" ,
31
+ "phpstan/phpstan-deprecation-rules" : " ^1.1||^2.0" ,
32
+ "phpstan/phpstan-phpunit" : " ^1.3||^2.0" ,
31
33
"guzzlehttp/guzzle" : " ^7.0.1"
32
34
},
33
35
"autoload" : {
41
43
}
42
44
},
43
45
"scripts" : {
44
- "psalm " : " vendor/bin/psalm " ,
46
+ "analyse " : " vendor/bin/phpstan analyse " ,
45
47
"test" : " vendor/bin/phpunit --no-coverage" ,
46
48
"test-coverage" : " vendor/bin/phpunit --coverage-html coverage"
47
49
},
48
50
"config" : {
49
- "sort-packages" : true
51
+ "sort-packages" : true ,
52
+ "allow-plugins" : {
53
+ "pestphp/pest-plugin" : true ,
54
+ "phpstan/extension-installer" : true
55
+ }
50
56
},
51
57
"extra" : {
52
58
"laravel" : {
55
61
]
56
62
}
57
63
},
58
- "minimum-stability" : " dev " ,
64
+ "minimum-stability" : " stable " ,
59
65
"prefer-stable" : true
60
66
}
Original file line number Diff line number Diff line change
1
+ includes:
2
+ - vendor/larastan/larastan/extension.neon
3
+
4
+ parameters:
5
+ level: 5
6
+ paths:
7
+ - src
8
+ - tests
9
+ tmpDir: build/phpstan
10
+ checkOctaneCompatibility: true
11
+ checkModelProperties: true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public function register()
27
27
'language-recognizer '
28
28
);
29
29
30
- $ this ->app ->singleton (LaravelLanguageRecognizer::class, function ($ app ) {
30
+ $ this ->app ->bind (LaravelLanguageRecognizer::class, function ($ app ) {
31
31
return new LaravelLanguageRecognizer ($ app );
32
32
});
33
33
}
You can’t perform that action at this time.
0 commit comments