-
Notifications
You must be signed in to change notification settings - Fork 110
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
Use PHP 7.2 features in Optimization Detective #1162
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one suggestion, but looks good. Pre-approving.
@@ -27,7 +27,7 @@ | |||
* @access private | |||
* @link https://core.trac.wordpress.org/ticket/43258 | |||
* | |||
* @param string $passthrough Optional. Filter value. Default null. | |||
* @param string $passthrough Value for the template_include filter which is passed through. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch ✨
Co-authored-by: Joe McGill <[email protected]>
In #1130 the PHP version was bumped to 7.2. This allows us to make use of new PHP language features which further harden static analysis (related to #775). Changes in this PR include:
void
return type#^(Function|Method) .+? return type has no value type specified in iterable type array#
#^(Function|Method) .+? has parameter .+? with no value type specified in iterable type array#
#^(Function|Method) .+? has no return type specified#