Repository navigation
Code Quality: Fix the return.unusedType PHPStan errors and remove the baseline
#15387
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
Closed
mukeshpanchal27
wants to merge
37
commits into
WordPress:trunk
from
mukeshpanchal27:fix/validate-another-blog-signup-return-type
Closed
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
3949674
Code Quality: Remove `null` from `validate_another_blog_signup()` ret…
mukeshpanchal27 d8ddbb1
Merge branch 'trunk' into fix/validate-another-blog-signup-return-type
mukeshpanchal27 3041f54
Code Quality: Document arrays in the `plugins_api_result` filter.
mukeshpanchal27 8c42ca1
Code Quality: Remove `WP_Error` from `_fix_attachment_links()` return…
mukeshpanchal27 41ba355
Code Quality: Remove `array` from `get_preferred_from_update_core()` …
mukeshpanchal27 6349af4
Code Quality: Correct the `$tag_list` type in the `the_tags` filter.
mukeshpanchal27 37dc5ce
Code Quality: Accept `null` in the `_make_cat_compat()` parameter type.
mukeshpanchal27 5e739c4
Code Quality: Remove `false` from `recovery_mode_hash()` return type.
mukeshpanchal27 be0e86b
Code Quality: Document `false` in the `wp_code_editor_settings` filter.
mukeshpanchal27 ec8f929
Code Quality: Correct the `get_post_gallery()` return and filter types.
mukeshpanchal27 d3760b9
Code Quality: Document `false` in the `wp_mime_type_icon` filter.
mukeshpanchal27 8b55de8
Code Quality: Remove `false` from `_set_preview()` return type.
mukeshpanchal27 beb353a
Code Quality: Correct the `get_term_to_edit()` return type.
mukeshpanchal27 c95d168
Code Quality: Document `WP_Error` in the `allow_password_reset` filter.
mukeshpanchal27 a6d0682
Build/Test Tools: Remove the `return.unusedType` PHPStan baseline.
mukeshpanchal27 f378672
Merge branch 'fix/validate-another-blog-signup-return-type' of https:…
mukeshpanchal27 fc5d8c1
Code Quality: Fix docblock continuation alignment.
mukeshpanchal27 d788afa
Merge branch 'trunk' into fix/validate-another-blog-signup-return-type
westonruter 9656fad
Add conditional return type to sanitize_term()
westonruter 768c852
Document sanitize_term() as taking a string-keyed array
westonruter 59b545a
Document sanitize_term_field() as accepting int values
westonruter 4b86354
Always pass string|false to the wp_mime_type_icon filter
westonruter 9ebbee7
Document wp_match_mime_types() return as string-keyed lists
westonruter e2a0d82
Only use string icon URLs from the cached icon files list
westonruter 676a4a1
Remove the unreachable is_object() guard from _set_preview()
westonruter 0eec625
Use a truly nonexistent attachment ID in the mime type icon test
westonruter c78ec67
Allow integer keys in wp_match_mime_types() return type
westonruter 3fc39aa
Regenerate baselines
westonruter 5b21ead
Note that the icon filter's post ID is 0 for a missing attachment
westonruter 467827f
Move sanitize_term()'s term type into its regular @param
westonruter 9bdb8d3
Add a conditional return type to get_post_gallery()
westonruter ccd0bce
Allow integer keys in get_post_gallery() data arrays
westonruter 1dfd08d
Test that wp_mime_type_icon() ignores non-string cached icons
westonruter 103ad9f
Realign sanitize_term() parameter docs
westonruter 7aa5ea9
Clarify when the icon filter's MIME type and post ID are 0
westonruter 3ed0c7b
Merge branch 'trunk' into fix/validate-another-blog-signup-return-type
westonruter e91c525
Simplify wp_match_mime_types() return type to array<string[]>
westonruter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This 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
This 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
This 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
This 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
This 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
This 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
This 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
This 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
This 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
This 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
This 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
This 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
This 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
This 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
This 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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. This matches the return value for
wp_get_code_editor_settings():