From b7724abf4122eb9c14764e857cfdafb98a569a35 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Wed, 9 Oct 2024 15:04:27 +0200 Subject: [PATCH 1/3] PHPStan enable bleeding edge --- phpstan.neon.dist | 1 + 1 file changed, 1 insertion(+) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 0caecad..4186639 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,4 +1,5 @@ includes: + - phar://phpstan.phar/conf/bleedingEdge.neon - phpstan-baseline.neon parameters: From f3e0a3c02e251999d8eb4e8687ae0fb1651140dc Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Wed, 9 Oct 2024 16:38:13 +0200 Subject: [PATCH 2/3] Update phpstan.neon.dist --- phpstan.neon.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 4186639..a0d759c 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,6 +1,6 @@ includes: - phar://phpstan.phar/conf/bleedingEdge.neon - - phpstan-baseline.neon + - phpstan-baseline.neon parameters: level: max From a0493547e81eb3a768cf687cfd3c904909fe19a6 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Wed, 9 Oct 2024 16:38:45 +0200 Subject: [PATCH 3/3] Update phpstan-baseline.neon --- phpstan-baseline.neon | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 83fabd2..374d76d 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -24,6 +24,21 @@ parameters: count: 3 path: lib/Baseline.php + - + message: "#^Call to function is_array\\(\\) with array\\{ignoreErrors\\?\\: list\\\\} will always evaluate to true\\.$#" + count: 1 + path: lib/Baseline.php + + - + message: "#^Call to function is_array\\(\\) with list\\ will always evaluate to true\\.$#" + count: 1 + path: lib/Baseline.php + + - + message: "#^Property staabm\\\\PHPStanBaselineAnalysis\\\\Baseline\\:\\:\\$content \\(array\\{parameters\\?\\: array\\{ignoreErrors\\?\\: list\\\\}\\}\\) does not accept array\\.$#" + count: 1 + path: lib/Baseline.php + - message: """ #^Call to deprecated function Safe\\\\substr\\(\\)\\: @@ -40,6 +55,11 @@ parameters: count: 2 path: lib/FilterConfig.php + - + message: "#^Parameter \\#1 \\$jsonFiles of method staabm\\\\PHPStanBaselineAnalysis\\\\GraphApplication\\:\\:iterateOverFiles\\(\\) expects list\\, array given\\.$#" + count: 1 + path: lib/GraphApplication.php + - message: """ #^Call to deprecated function Safe\\\\sprintf\\(\\)\\: