-
Notifications
You must be signed in to change notification settings - Fork 178
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 strict_types
where appropriate
#12631
Conversation
Plugin builds for 180f9cd are ready 🛎️!
|
Size Change: 0 B Total Size: 2.72 MB ℹ️ View Unchanged
|
Surprised that there are only 3 test failures. They're related to #12631 (comment) but of course not PHPStan errors but PHPUnit test failures. This is a good reminder to myself that using To make the cast work & not cause PHPStan complaints, we'd have to do something like this in $tracking_id = $this->settings->get_setting( $this->settings::SETTING_NAME_TRACKING_ID );
return is_scalar( $tracking_id ) ? (string) $tracking_id : ''; There are other instances of Needs a closer look & ideally tests. |
includes/Settings.php
Outdated
* | ||
* @link https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php#L211-L267 | ||
* | ||
* @since 1.27.0 |
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.
We're now at 1.28.0
Context
Summary
Relevant Technical Choices
To-do
User-facing changes
Testing Instructions
This PR can be tested by following these steps:
Reviews
Does this PR have a security-related impact?
Does this PR change what data or activity we track or use?
Does this PR have a legal-related impact?
Checklist
Type: XYZ
label to the PRFixes #9817