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

Tokens\Collections::$returnTypeTokens: allow for "static" (PHP 8) #134

Merged
merged 1 commit into from
May 4, 2020

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 3, 2020

As of PHP 8.0, static can be used as a return type for function declarations.

Ref: https://wiki.php.net/rfc/static_return_type

Includes adding a unit test for the BCFile::getMethodProperties()/FunctionDeclarations::getProperties() methods to safeguard this.

Sister-PR to the upstream squizlabs/PHP_CodeSniffer#2952

As of PHP 8.0, `static` can be used as a return type for function declarations.

Ref: https://wiki.php.net/rfc/static_return_type

Includes adding a unit test for the `BCFile::getMethodProperties()`/`FunctionDeclarations::getProperties()` methods to safeguard this.

Sister-PR to the upstream squizlabs/PHP_CodeSniffer 2952
@jrfnl jrfnl added this to the 1.0.0-alpha3 milestone May 3, 2020
@jrfnl jrfnl merged commit 167f512 into develop May 4, 2020
@jrfnl jrfnl deleted the feature/php8-allow-for-return-type-static branch May 4, 2020 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant