Repository navigation
PHPStan: Resolve always-true type checks #86104
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 20 commits into
WordPress:trunk
from
huzaifaalmesbah:fix/phpstan-compat-checks
Nov 6, 2026
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
55dcf69
PHPStan: Resolve always-true type checks
huzaifaalmesbah dd63098
Merge remote-tracking branch 'origin/trunk' into fix/phpstan-compat-c…
huzaifaalmesbah a87323b
Merge branch 'trunk' into fix/phpstan-compat-checks
westonruter cb1a8e2
Navigation: Narrow layout param instead of widening it to mixed
westonruter 84fac7a
Navigation: Add a return shape for layout custom property declarations
westonruter 9c9615d
Code Quality: Type the script module registry entries
westonruter 9113a61
Navigation: Combine the layout comment with its `@var` docblock
westonruter 2780b69
Code Quality: Add a return shape for viewport media queries
westonruter aed1887
Navigation: Skip viewport media queries that are not strings
westonruter 9c357e2
Revert "Navigation: Skip viewport media queries that are not strings"
westonruter 07fd94e
PHPStan: Read pull request stubs from the local checkout when it has …
westonruter 86ed716
PHPStan: Generate the WordPress stubs from WordPress/wordpress-develo…
westonruter b949d7b
Revert "PHPStan: Read pull request stubs from the local checkout when…
westonruter 93a968c
PHPStan: Document generating pull request stubs offline from the chec…
westonruter e91e01c
Docs: Break up the PHPStan paragraph in the coding guidelines
westonruter 796b7e4
PHPStan: Move the viewport media queries ignore under a level 4 heading
westonruter 7a1ab72
Docs: List the PHPStan commands as alternatives
westonruter 1228084
Docs: Link the files and directories in the PHPStan guidance
westonruter 1cd7ba2
Navigation: Accept any array of layout values instead of asserting st…
westonruter 23d7758
Merge branch 'trunk' into fix/phpstan-compat-checks
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| { | ||
| "name": "php-stubs/wordpress-stubs", | ||
| "version": "7.2.0-beta4.65318", | ||
| "description": "WordPress stubs generated from https://github.com/WordPress/wordpress-develop/commit/28d2f500094cd41b3186748946c912cb78f8e021 (r65318), in place of the released package.", | ||
| "version": "7.2.0-beta4.65320", | ||
| "description": "WordPress stubs generated from https://github.com/WordPress/wordpress-develop/commit/27307a20f9ba784dadea277487f5a99d449ead99 (r65320), in place of the released package.", | ||
| "license": "GPL-2.0-or-later", | ||
| "extra": { | ||
| "source": { | ||
| "commit": "28d2f500094cd41b3186748946c912cb78f8e021", | ||
| "revision": 65318 | ||
| "commit": "27307a20f9ba784dadea277487f5a99d449ead99", | ||
| "revision": 65320 | ||
| } | ||
| } | ||
| } |
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 Gutenberg requires WP 7.0, and
WP_Interactivity_API::add_client_navigation_support_to_script_module()was introduced in WP 6.9.