From 0925b6acb42a8a09351bace088d91c283500e4d2 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 24 Oct 2025 15:12:17 +0200 Subject: [PATCH] Fix PHP8.5 lint errors --- .../data/call-to-function-without-impure-points-pipe.php | 2 +- .../DeadCode/data/call-to-method-without-impure-points-pipe.php | 2 +- .../data/call-to-static-method-without-impure-points-pipe.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/PHPStan/Rules/DeadCode/data/call-to-function-without-impure-points-pipe.php b/tests/PHPStan/Rules/DeadCode/data/call-to-function-without-impure-points-pipe.php index 22244535ce..5664c3d231 100644 --- a/tests/PHPStan/Rules/DeadCode/data/call-to-function-without-impure-points-pipe.php +++ b/tests/PHPStan/Rules/DeadCode/data/call-to-function-without-impure-points-pipe.php @@ -7,4 +7,4 @@ function myFunc() } 5 |> myFunc(...); -5 |> fn ($x) => myFunc($x); +5 |> (fn ($x) => myFunc($x)); diff --git a/tests/PHPStan/Rules/DeadCode/data/call-to-method-without-impure-points-pipe.php b/tests/PHPStan/Rules/DeadCode/data/call-to-method-without-impure-points-pipe.php index 81bf663724..ba946024b0 100644 --- a/tests/PHPStan/Rules/DeadCode/data/call-to-method-without-impure-points-pipe.php +++ b/tests/PHPStan/Rules/DeadCode/data/call-to-method-without-impure-points-pipe.php @@ -15,5 +15,5 @@ public function maybePure(int $o): int function (): void { $foo = new Foo(); 5 |> $foo->maybePure(...); - 5 |> fn ($x) => $foo->maybePure($x); + 5 |> (fn ($x) => $foo->maybePure($x)); }; diff --git a/tests/PHPStan/Rules/DeadCode/data/call-to-static-method-without-impure-points-pipe.php b/tests/PHPStan/Rules/DeadCode/data/call-to-static-method-without-impure-points-pipe.php index eb5ee6113e..0b34f0f277 100644 --- a/tests/PHPStan/Rules/DeadCode/data/call-to-static-method-without-impure-points-pipe.php +++ b/tests/PHPStan/Rules/DeadCode/data/call-to-static-method-without-impure-points-pipe.php @@ -14,5 +14,5 @@ public static function doFoo(int $o): int function (): void { 5 |> Foo::doFoo(...); - 5 |> fn ($x) => Foo::doFoo($x); + 5 |> (fn ($x) => Foo::doFoo($x)); };