Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Jun 29, 2020

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants