Fix WPCliRuncommandDynamicReturnTypeExtension when passing invalid options#339
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe dynamic return type extension now defaults an unspecified ChangesRuncommand return inference
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 PHPStan (2.2.5)PHPStan was skipped because the config uses disallowed Comment |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Any call like
WP_CLI::runcommand('plugin list')(omitting options or omitting 'return') was wrongly typed by PHPStan asstringinstead ofnull.As noticed in wp-cli/wp-cli#6345
Summary by CodeRabbit
WP_CLI::runcommand()when noreturnoption is specified.null.exit_errordisabled.