forked from webimpress/coding-standard
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Custo findEndOfStatement in ScopeIndent sniff as the original one has…
… a bug The function File::findEndOfStatement has a bug in finding end of statement for fn closures, see: squizlabs/PHP_CodeSniffer#2748
- Loading branch information
1 parent
4fb677f
commit e38d51c
Showing
3 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -712,3 +712,7 @@ $a = [ | |
int $d | ||
) => $d, | ||
]; | ||
|
||
$fn1 = fn (int $a) : int => $a; | ||
|
||
$fn2 = fn (int $b) : int => $b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -713,3 +713,7 @@ $a = [ | |
int $d | ||
) => $d, | ||
]; | ||
|
||
$fn1 = fn (int $a) : int => $a; | ||
|
||
$fn2 = fn (int $b) : int => $b; |