Skip to content

Commit 5b42dc7

Browse files
committed
Making sure arrow functions are ignored (ref #2523)
1 parent bbd6f63 commit 5b42dc7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,5 @@ public function foo()
105105
'bad indent here leads to bad indent for closer', function () {
106106
});
107107
}
108+
109+
$fn1 = fn($x) => $x + $y;

src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.inc.fixed

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,5 @@ public function foo()
106106
'bad indent here leads to bad indent for closer', function () {
107107
});
108108
}
109+
110+
$fn1 = fn($x) => $x + $y;

0 commit comments

Comments
 (0)