File tree Expand file tree Collapse file tree 5 files changed +56
-7
lines changed Expand file tree Collapse file tree 5 files changed +56
-7
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ public/*.js binary
18
18
.styleci.yml export-ignore
19
19
CHANGELOG.md export-ignore
20
20
package-lock.json export-ignore
21
+ phpstan.neon.dist export-ignore
21
22
phpunit.xml.dist export-ignore
22
23
RELEASE.md export-ignore
23
24
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 22
22
"require-dev" : {
23
23
"ext-gd" : " *" ,
24
24
"guzzlehttp/guzzle" : " ^6.0|^7.0" ,
25
- "phpunit/phpunit" : " ^9.0" ,
26
- "orchestra/testbench" : " ^6.0|^7.0|^8.0"
25
+ "laravel/octane" : " ^1.4" ,
26
+ "orchestra/testbench" : " ^6.0|^7.0|^8.0" ,
27
+ "phpstan/phpstan" : " ^1.10" ,
28
+ "phpunit/phpunit" : " ^9.0"
27
29
},
28
30
"autoload" : {
29
31
"psr-4" : {
Original file line number Diff line number Diff line change
1
+ parameters:
2
+ paths:
3
+ - config
4
+ - database
5
+ - src
6
+
7
+ level: 0
8
+
9
+ ignoreErrors:
10
+ - "#Unsafe usage of new static\\(\\)#"
Original file line number Diff line number Diff line change 12
12
use Illuminate \Support \Testing \Fakes \EventFake ;
13
13
use Laravel \Telescope \Contracts \EntriesRepository ;
14
14
use Laravel \Telescope \Contracts \TerminableRepository ;
15
- use Symfony \Component \Debug \Exception \FatalThrowableError ;
16
15
use Throwable ;
17
16
18
17
class Telescope
@@ -573,10 +572,6 @@ public static function flushEntries()
573
572
*/
574
573
public static function catch ($ e , $ tags = [])
575
574
{
576
- if ($ e instanceof Throwable && ! $ e instanceof Exception) {
577
- $ e = new FatalThrowableError ($ e );
578
- }
579
-
580
575
event (new MessageLogged ('error ' , $ e ->getMessage (), [
581
576
'exception ' => $ e ,
582
577
'telescope ' => $ tags ,
You can’t perform that action at this time.
0 commit comments