From c5c40d9dcebcb4e5d087ddd7a327591c72ead4ba Mon Sep 17 00:00:00 2001 From: Joan Miquel Date: Tue, 1 Apr 2025 11:44:08 +0200 Subject: [PATCH 1/8] Update pest in composer --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8fd34524..4ff240cc 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,7 @@ "ext-swow": " Date: Tue, 1 Apr 2025 19:26:18 +0200 Subject: [PATCH 2/8] Update phpstan to v2 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4ff240cc..501d5a91 100644 --- a/composer.json +++ b/composer.json @@ -46,7 +46,7 @@ "pestphp/pest": "^2.0", "mockery/mockery": "^1.6", "guzzlehttp/guzzle": "^7.0", - "phpstan/phpstan": "1.11.x-dev" + "phpstan/phpstan": "^2.0" }, "config": { "allow-plugins": { From b5d0302fa42cffe17009333bbdc1724867c80a12 Mon Sep 17 00:00:00 2001 From: Joan Miquel Date: Tue, 1 Apr 2025 19:38:28 +0200 Subject: [PATCH 3/8] Try to fix phpstan error --- phpstan.neon.dist | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index c4c8a647..880c7ade 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -23,3 +23,5 @@ parameters: - path: src/Worker.php messages: - '#Constant LINE_VERSION_LENGTH not found.#' + - path: src/Protocols/Http.php + treatPhpDocTypesAsCertain: false From 9188a491e39ab4585289bca76b77e68b623662d1 Mon Sep 17 00:00:00 2001 From: Joan Miquel Date: Tue, 1 Apr 2025 19:41:58 +0200 Subject: [PATCH 4/8] Try again with spaces --- phpstan.neon.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 880c7ade..1d310115 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -24,4 +24,4 @@ parameters: messages: - '#Constant LINE_VERSION_LENGTH not found.#' - path: src/Protocols/Http.php - treatPhpDocTypesAsCertain: false + treatPhpDocTypesAsCertain: false From 82de629d3659cc7b5cf75931f331055ad389954a Mon Sep 17 00:00:00 2001 From: Joan Miquel Date: Tue, 1 Apr 2025 19:43:59 +0200 Subject: [PATCH 5/8] Try again --- phpstan.neon.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 1d310115..dd301591 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -24,4 +24,4 @@ parameters: messages: - '#Constant LINE_VERSION_LENGTH not found.#' - path: src/Protocols/Http.php - treatPhpDocTypesAsCertain: false + treatPhpDocTypesAsCertain: false From 9fe895fb31542eb3e32310fbbb7716a725fb24e8 Mon Sep 17 00:00:00 2001 From: Joan Miquel Date: Tue, 1 Apr 2025 20:07:01 +0200 Subject: [PATCH 6/8] Try with initial tab --- phpstan.neon.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index dd301591..ff4001c5 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -24,4 +24,4 @@ parameters: messages: - '#Constant LINE_VERSION_LENGTH not found.#' - path: src/Protocols/Http.php - treatPhpDocTypesAsCertain: false + treatPhpDocTypesAsCertain: false From a708e40308570f14480b6e3a45e489e228974bfc Mon Sep 17 00:00:00 2001 From: Joan Miquel Date: Tue, 1 Apr 2025 20:15:47 +0200 Subject: [PATCH 7/8] Try again :/ --- phpstan.neon.dist | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index ff4001c5..c7b096bb 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -23,5 +23,6 @@ parameters: - path: src/Worker.php messages: - '#Constant LINE_VERSION_LENGTH not found.#' - - path: src/Protocols/Http.php - treatPhpDocTypesAsCertain: false + - + path: src/Protocols/Http.php + treatPhpDocTypesAsCertain: false From 0018d809c8341f3e831bc8df4dabd87101438d60 Mon Sep 17 00:00:00 2001 From: Joan Miquel Date: Tue, 1 Apr 2025 20:17:01 +0200 Subject: [PATCH 8/8] Use space :// --- phpstan.neon.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index c7b096bb..09c25169 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -24,5 +24,5 @@ parameters: messages: - '#Constant LINE_VERSION_LENGTH not found.#' - - path: src/Protocols/Http.php + path: src/Protocols/Http.php treatPhpDocTypesAsCertain: false