Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: adds support for PHP 7.4 fn closure (fn () => ...) #67

Merged
merged 2 commits into from
Dec 8, 2019

Conversation

michalbundyra
Copy link
Member

Updated sniffs:

  • Formatting\FunctionParam
  • Formatting\ReturnType
  • Functions\NullableTypehint
  • Functions\ReturnType
  • PHP\CorrectClassNameCase
  • PHP\DisallowFqn
  • PHP\StaticCallback
  • WhiteSpace\OperatorAndKeywordSpacing
  • WhiteSpace\ScopeIndent

Updated sniffs:
- Formatting\FunctionParam
- Formatting\ReturnType
- Functions\NullableTypehint
- Functions\ReturnType
- PHP\CorrectClassNameCase
- PHP\DisallowFqn
- PHP\StaticCallback
- WhiteSpace\OperatorAndKeywordSpacing
- WhiteSpace\ScopeIndent
@michalbundyra michalbundyra added the enhancement New feature or request label Dec 6, 2019
@michalbundyra michalbundyra added this to the 1.1.0 milestone Dec 6, 2019
… a bug

The function File::findEndOfStatement has a bug in finding end of statement
for fn closures, see: squizlabs/PHP_CodeSniffer#2748
michalbundyra added a commit that referenced this pull request Dec 8, 2019
Feature: adds support for PHP 7.4 fn closure (fn () => ...)
michalbundyra added a commit that referenced this pull request Dec 8, 2019
michalbundyra added a commit that referenced this pull request Dec 8, 2019
@michalbundyra michalbundyra merged commit e38d51c into webimpress:develop Dec 8, 2019
@michalbundyra michalbundyra deleted the feature/fn-support branch December 8, 2019 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant