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)); };