Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 18, 2024
1 parent 74c02de commit 2c11df5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php // lint >= 7.4
<?php // lint >= 8.0

namespace ImmediatelyCalledArrowFunction;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ public function doFoo(array $a): void
*/
public function doFoo2(array $a): void
{
$cb = fn () => throw new \InvalidArgumentException();
$cb = function () {
throw new \InvalidArgumentException();
};
}

/**
Expand Down

0 comments on commit 2c11df5

Please sign in to comment.