Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit acf7f97

Browse files
staabmondrejmirtes
authored andcommitted
Fix PHP8.5 lint errors
1 parent 688fa94 commit acf7f97

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎tests/PHPStan/Rules/DeadCode/data/call-to-function-without-impure-points-pipe.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ function myFunc()
77
}
88

99
5 |> myFunc(...);
10-
5 |> fn ($x) => myFunc($x);
10+
5 |> (fn ($x) => myFunc($x));

‎tests/PHPStan/Rules/DeadCode/data/call-to-method-without-impure-points-pipe.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ public function maybePure(int $o): int
1515
function (): void {
1616
$foo = new Foo();
1717
5 |> $foo->maybePure(...);
18-
5 |> fn ($x) => $foo->maybePure($x);
18+
5 |> (fn ($x) => $foo->maybePure($x));
1919
};

‎tests/PHPStan/Rules/DeadCode/data/call-to-static-method-without-impure-points-pipe.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ public static function doFoo(int $o): int
1414

1515
function (): void {
1616
5 |> Foo::doFoo(...);
17-
5 |> fn ($x) => Foo::doFoo($x);
17+
5 |> (fn ($x) => Foo::doFoo($x));
1818
};

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /