From 091fa6f03a1a4a37a618b6e745fe982fc8dad4c5 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Fri, 3 Oct 2025 13:51:13 +0200 Subject: [PATCH] Use better error formatter for PHPStan See https://github.com/TicketSwap/phpstan-error-formatter --- composer.json | 3 ++- phpstan.neon.dist | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 78a96f818..11f49bf08 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,8 @@ "rector/rector": "^2.0", "symfony/polyfill-php81": "^1.23", "symfony/var-exporter": "^5 || ^6 || ^7", - "thecodingmachine/safe": "^1.3 || ^2 || ^3" + "thecodingmachine/safe": "^1.3 || ^2 || ^3", + "ticketswap/phpstan-error-formatter": "^1.2" }, "suggest": { "amphp/http-server": "To leverage async resolving with webserver on AMPHP platform", diff --git a/phpstan.neon.dist b/phpstan.neon.dist index f0e110d87..81440567c 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -2,6 +2,9 @@ parameters: # TODO increase to max level: 8 + errorFormat: ticketswap + editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%' + paths: - benchmarks - examples