-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scope closer detection in arrow function detection (#298)
* Add test for ternary in arrow function * Do not treat closing paren as a scope closer for arrow func * Add more tests * Add detection for function parameters in arrow function detection * Stop using null coalesce * Fix formatting * Add test for array in args * Support scope closer from phpcs if we could not find one * Add test for simple arrow function in ternary * Change parsing for end token to track pairs * Remove function call inside for loop condition * Add test for arrow function return type * Support arrow functions with return types * Remove accidental artifact
- Loading branch information
1 parent
4cca2aa
commit bdf1e50
Showing
3 changed files
with
123 additions
and
10 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
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