PHP 8.0: NewReturnTypeDeclarations: allow for "static" return type by jrfnl · Pull Request #1152 · PHPCompatibility/PHPCompatibility
Navigation Menu
{{ message }}
PHPCompatibility / PHPCompatibility Public
- Notifications You must be signed in to change notification settings
- Fork 204
Conversation
Copy link Copy Markdown
Member
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
- Add static return type php/php-src#5062
- php/php-src@4344385
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
added
Type: enhancement
PR: quick merge
PR: ready for review labels
Jun 29, 2020
jrfnl
added this to the
10.0.0 milestone
jrfnl
requested a review
from wimg
jrfnl
mentioned this pull request
40 tasks
wimg approved these changes Jul 11, 2020
wimg
merged commit
0c971f4
into
develop
wimg
deleted the
php-8.0/newreturntypedeclarations-static
branch
jrfnl
removed
PR: quick merge
PR: ready for review labels
Jul 11, 2020This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment