Repository navigation
Repair wp/5.9 branch Actions: Initialize WP_Block_Supports::$block_to_render in the Navigation Link render tests - #84419
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
59fceb5 to
7367a65
Compare
|
Size Change: 0 B Total Size: 1.11 MB ℹ️ View Unchanged
|
|
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. |
7367a65 to
1843fdb
Compare
ramonjd
left a comment
There was a problem hiding this comment.
| PR | Before (base PR) | After (this PR) | Top of stack |
|---|---|---|---|
#84419 wp/5.9 |
PHP 8.0 (earlier base run 38008683740): 13 errors, including the same 4 Navigation Link ones | PHP 8.0: 9 errors, none from Navigation Link | #85103: all 10 PHP jobs pass |
1843fdb to
dfb144e
Compare
…nk render tests.
dfb144e to
ee3e107
Compare
Part of #82934.
What?
Saves, sets and restores
WP_Block_Supports::$block_to_renderinset_up()/tear_down()ofphpunit/class-block-library-navigation-link-test.php. Test code only.Why?
The Navigation Link tests call the block's render function directly, so
WP_Block_Supports::$block_to_renderisnullwhenget_block_wrapper_attributes()reads it. ThePHP 8.0andPHP 8.1legs reportTrying to access array offset on value of type nullinclass-wp-block-supports.php:94(4 tests). That is a notice on PHP 7 and a warning, converted to an error, on PHP 8.How?
Adapted from
wp/6.0's #84286. The navigation-link hunk is identical to #84286's; the render-last-posts part of #84286 doesn't apply because that file doesn't exist on this branch.Use of AI Tools
This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.
🤖 Generated with Claude Code