Repository navigation
Block Library: Fix argument types reported by PHPStan #86095
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
Merged
westonruter
merged 15 commits into
WordPress:trunk
from
huzaifaalmesbah:fix/phpstan-argument-types
Nov 5, 2026
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6d5fc76
Block Library: Fix argument types reported by PHPStan
huzaifaalmesbah f43242a
Remove the resolved return.type entry for the classic menu fallback b…
huzaifaalmesbah 359b465
Merge remote-tracking branch 'origin/trunk' into fix/phpstan-argument…
huzaifaalmesbah 5192e23
Merge remote-tracking branch 'origin/trunk' into fix/phpstan-argument…
huzaifaalmesbah 9b82fe0
Merge remote-tracking branch 'origin/trunk' into fix/phpstan-argument…
westonruter 3e644f8
Narrow the word count return type to a non-negative integer
westonruter 8710e48
Regenerate the WordPress stubs from core trunk at r65263
westonruter c82850f
Remove the integer casts on comment timestamps
westonruter 4fab26e
Omit the date of a latest comment whose date is unavailable
westonruter ec14c67
Narrow the word count type to the three accepted values
westonruter 023fb77
Narrow the Search block border side to the four sides or null
westonruter d4b97cf
Omit the comment date block for every format when the date is unavail…
westonruter ae662d2
Fix the human-diff comment date being off by the timezone offset
westonruter a3c0d3b
Revert "Fix the human-diff comment date being off by the timezone off…
westonruter 75bb745
Merge branch 'trunk' into fix/phpstan-argument-types
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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| { | ||
| "name": "php-stubs/wordpress-stubs", | ||
| "version": "7.2.0-beta3.65220", | ||
| "description": "WordPress stubs generated from https://github.com/WordPress/wordpress-develop/commit/140b182252392fb12733a9c7cc7d5136a522ba43 (r65220), in place of the released package.", | ||
| "version": "7.2.0-beta4.65263", | ||
| "description": "WordPress stubs generated from https://github.com/WordPress/wordpress-develop/commit/a87c255146a7d74038ad20133db10ffd63f5cb50 (r65263), in place of the released package.", | ||
| "license": "GPL-2.0-or-later", | ||
| "extra": { | ||
| "source": { | ||
| "commit": "140b182252392fb12733a9c7cc7d5136a522ba43", | ||
| "revision": 65220 | ||
| "commit": "a87c255146a7d74038ad20133db10ffd63f5cb50", | ||
| "revision": 65263 | ||
| } | ||
| } | ||
| } |
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.
This makes sense, because
user_idis anumeric-string.