PHP 8.0: NewReturnTypeDeclarations: allow for "static" return type by jrfnl · Pull Request #1152 · PHPCompatibility/PHPCompatibility

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@jrfnl

Copy link Copy Markdown

Member

@jrfnl jrfnl commented

Jun 29, 2020

edited

Loading

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

Refs:

Includes unit tests.

Related to #809

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

Refs:
* https://wiki.php.net/rfc/static_return_type
* php/php-src#5062
* php/php-src@4344385

Includes unit tests.

@jrfnl jrfnl added Type: enhancement PR: quick merge

PR only contains relatively simple changes

PR: ready for review labels

Jun 29, 2020

@jrfnl jrfnl added this to the 10.0.0 milestone

Jun 29, 2020

@jrfnl jrfnl requested a review from wimg

June 29, 2020 21:58

@wimg wimg merged commit 0c971f4 into develop

Jul 11, 2020

@wimg wimg deleted the php-8.0/newreturntypedeclarations-static branch

July 11, 2020 12:15

@jrfnl jrfnl removed PR: quick merge

PR only contains relatively simple changes

PR: ready for review labels

Jul 11, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@wimg wimg wimg approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

10.0.0-alpha1

Development

Successfully merging this pull request may close these issues.

2 participants

@jrfnl @wimg