Skip to content

Commit 2e7b133

Browse files
ruudkspawnia
authored andcommitted
Use better error formatter for PHPStan
See https://github.com/TicketSwap/phpstan-error-formatter
1 parent 4834d97 commit 2e7b133

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"rector/rector": "^2.0",
3434
"symfony/polyfill-php81": "^1.23",
3535
"symfony/var-exporter": "^5 || ^6 || ^7",
36-
"thecodingmachine/safe": "^1.3 || ^2 || ^3"
36+
"thecodingmachine/safe": "^1.3 || ^2 || ^3",
37+
"ticketswap/phpstan-error-formatter": "^1.2"
3738
},
3839
"suggest": {
3940
"amphp/http-server": "To leverage async resolving with webserver on AMPHP platform",

phpstan.neon.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ parameters:
22
# TODO increase to max
33
level: 8
44

5+
errorFormat: ticketswap
6+
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
7+
58
paths:
69
- benchmarks
710
- examples

0 commit comments

Comments
 (0)