René's URL Explorer Experiment


Title: PHPStan: Add dynamic return type extension for `WP_CLI::get_config()` by swissspidy · Pull Request #346 · wp-cli/wp-cli-tests · GitHub

Open Graph Title: PHPStan: Add dynamic return type extension for `WP_CLI::get_config()` by swissspidy · Pull Request #346 · wp-cli/wp-cli-tests

X Title: PHPStan: Add dynamic return type extension for `WP_CLI::get_config()` by swissspidy · Pull Request #346 · wp-cli/wp-cli-tests

Description: WP-CLI testing framework. Contribute to wp-cli/wp-cli-tests development by creating an account on GitHub.

Open Graph Description: Follow-up to #344 and #345 Summary by CodeRabbit New Features Added improved static analysis for WP_CLI::get_config(), inferring more accurate return types based on the configuration key reques...

X Description: Follow-up to #344 and #345 Summary by CodeRabbit New Features Added improved static analysis for WP_CLI::get_config(), inferring more accurate return types based on the configuration key reques...

Opengraph URL: https://github.com/wp-cli/wp-cli-tests/pull/346

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:9152fd84-9576-9bee-b80e-1fe07ace0c3b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA200:223B8D:104341F:167FBE3:6AFA3DEB
html-safe-noncee7d6dfcd23b0765b0d19a7b51a72a2fa5568645062a3d9eedbc1a8431b0d0984
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjAwOjIyM0I4RDoxMDQzNDFGOjE2N0ZCRTM6NkFGQTNERUIiLCJ2aXNpdG9yX2lkIjoiMTE5ODIxNjA1OTcwNjU1NTg4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6e99b679d43513ab9fd7e23bf7d108ef8fd5b6ceeaa49d185ff3cab7d99e3cc3
hovercard-subject-tagpull_request:4169985671
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/wp-cli/wp-cli-tests/346/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b3590931550f304b5e41ee43934b0fede1507b3c6cbc2295c709d2a65bba8c70/wp-cli/wp-cli-tests/pull/346
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b3590931550f304b5e41ee43934b0fede1507b3c6cbc2295c709d2a65bba8c70/wp-cli/wp-cli-tests/pull/346
og:image:altFollow-up to #344 and #345 Summary by CodeRabbit New Features Added improved static analysis for WP_CLI::get_config(), inferring more accurate return types based on the configuration key reques...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameswissspidy
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-cache
go-importgithub.com/wp-cli/wp-cli-tests git https://github.com/wp-cli/wp-cli-tests.git
octolytics-dimension-user_id1570774
octolytics-dimension-user_loginwp-cli
octolytics-dimension-repository_id134428237
octolytics-dimension-repository_nwowp-cli/wp-cli-tests
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id134428237
octolytics-dimension-repository_network_root_nwowp-cli/wp-cli-tests
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/wp-cli/wp-cli-tests/pull/346#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fwp-cli-tests%2Fpull%2F346
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fwp-cli-tests%2Fpull%2F346
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=wp-cli%2Fwp-cli-tests
Reloadhttps://github.com/wp-cli/wp-cli-tests/pull/346
Reloadhttps://github.com/wp-cli/wp-cli-tests/pull/346
Reloadhttps://github.com/wp-cli/wp-cli-tests/pull/346
wp-clihttps://github.com/wp-cli
wp-cli-testshttps://github.com/wp-cli/wp-cli-tests
Codehttps://github.com/wp-cli/wp-cli-tests
Issues16 (16)https://github.com/wp-cli/wp-cli-tests/issues
Pull requests5 (5)https://github.com/wp-cli/wp-cli-tests/pulls
Actionshttps://github.com/wp-cli/wp-cli-tests/actions
Security and qualityhttps://github.com/wp-cli/wp-cli-tests/security
Insightshttps://github.com/wp-cli/wp-cli-tests/pulse
https://github.com/wp-cli/wp-cli-tests
swissspidyhttps://github.com/swissspidy
mainhttps://github.com/wp-cli/wp-cli-tests/tree/main
add/phpstan-get-confighttps://github.com/wp-cli/wp-cli-tests/tree/add/phpstan-get-config
Conversationhttps://github.com/wp-cli/wp-cli-tests/pull/346
Commits3 (3)https://github.com/wp-cli/wp-cli-tests/pull/346/commits
Checkshttps://github.com/wp-cli/wp-cli-tests/pull/346/checks
Files changedhttps://github.com/wp-cli/wp-cli-tests/pull/346/files
PHPStan: Add dynamic return type extension for WP_CLI::get_config()https://github.com/wp-cli/wp-cli-tests/pull/346#top
swissspidyhttps://github.com/swissspidy
mainhttps://github.com/wp-cli/wp-cli-tests/tree/main
add/phpstan-get-confighttps://github.com/wp-cli/wp-cli-tests/tree/add/phpstan-get-config
https://github.com/swissspidy
swissspidyhttps://github.com/swissspidy
Jul 30, 2026https://github.com/wp-cli/wp-cli-tests/pull/346#issue-5020464553
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
#344https://github.com/wp-cli/wp-cli-tests/pull/344
#345https://github.com/wp-cli/wp-cli-tests/pull/345
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
https://github.com/swissspidy
PHPStan: Add dynamic return type extension for WP_CLI::get_config()https://github.com/wp-cli/wp-cli-tests/pull/346/commits/912f3aab2ad9b23853eec7df22abe7d07717da87
912f3aahttps://github.com/wp-cli/wp-cli-tests/pull/346/commits/912f3aab2ad9b23853eec7df22abe7d07717da87
https://github.com/swissspidy
swissspidyhttps://github.com/swissspidy
5.2.0https://github.com/wp-cli/wp-cli-tests/milestone/127
Jul 30, 2026https://github.com/wp-cli/wp-cli-tests/pull/346#event-28724325214
https://github.com/swissspidy
swissspidyhttps://github.com/swissspidy
code ownerhttps://github.com/wp-cli/wp-cli-tests/blob/7eaba17da88141f03c2b85bed8afb9af0e48c322/.github/CODEOWNERS#L1
July 30, 2026 13:54https://github.com/wp-cli/wp-cli-tests/pull/346#event-28724325812
https://github.com/swissspidy
swissspidyhttps://github.com/swissspidy
scope:testing https://github.com/wp-cli/wp-cli-tests/issues?q=state%3Aopen%20label%3Ascope%3Atesting
Jul 30, 2026https://github.com/wp-cli/wp-cli-tests/pull/346#event-28724325999
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
scope:artifacts https://github.com/wp-cli/wp-cli-tests/issues?q=state%3Aopen%20label%3Ascope%3Aartifacts
Jul 30, 2026https://github.com/wp-cli/wp-cli-tests/pull/346#event-28724339558
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jul 30, 2026https://github.com/wp-cli/wp-cli-tests/pull/346#issuecomment-5131728955
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
https://app.coderabbit.ai/change-stack/wp-cli/wp-cli-tests/pull/346?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack
912f3aahttps://github.com/wp-cli/wp-cli-tests/commit/912f3aab2ad9b23853eec7df22abe7d07717da87
626cd2bhttps://github.com/wp-cli/wp-cli-tests/commit/626cd2bbf8de71139dd843938ca4a0911c347f22
CodeRabbithttps://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=wp-cli/wp-cli-tests&utm_content=346
Xhttps://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai
Mastodonhttps://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai
Reddithttps://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Jul 30, 2026https://github.com/wp-cli/wp-cli-tests/pull/346#issuecomment-5131747537
Codecovhttps://app.codecov.io/gh/wp-cli/wp-cli-tests/pull/346?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wp-cli
Files with missing lineshttps://app.codecov.io/gh/wp-cli/wp-cli-tests/pull/346?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wp-cli
...PStan/WPCliGetConfigDynamicReturnTypeExtension.phphttps://app.codecov.io/gh/wp-cli/wp-cli-tests/pull/346?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wp-cli#diff-c3JjL1BIUFN0YW4vV1BDbGlHZXRDb25maWdEeW5hbWljUmV0dXJuVHlwZUV4dGVuc2lvbi5waHA=
71 Missing ⚠️ https://app.codecov.io/gh/wp-cli/wp-cli-tests/pull/346?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wp-cli
Let us know!https://github.com/codecov/feedback/issues/255
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jul 30, 2026 https://github.com/wp-cli/wp-cli-tests/pull/346#pullrequestreview-4819556740
View reviewed changes https://github.com/wp-cli/wp-cli-tests/pull/346/files/912f3aab2ad9b23853eec7df22abe7d07717da87
coderabbitaihttps://github.com/apps/coderabbitai
https://github.com/wp-cli/wp-cli-tests/pull/346#pullrequestreview-4819556740
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
7eaba17https://github.com/wp-cli/wp-cli-tests/commit/7eaba17da88141f03c2b85bed8afb9af0e48c322
912f3aahttps://github.com/wp-cli/wp-cli-tests/commit/912f3aab2ad9b23853eec7df22abe7d07717da87
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
src/PHPStan/WPCliGetConfigDynamicReturnTypeExtension.phphttps://github.com/wp-cli/wp-cli-tests/pull/346/files/912f3aab2ad9b23853eec7df22abe7d07717da87#diff-091be8dca53d23592eb00eb9ae25795ffb2fe73937bb1e605f31cd30fc383fa3
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
src/PHPStan/WPCliGetConfigDynamicReturnTypeExtension.phphttps://github.com/wp-cli/wp-cli-tests/pull/346/files/912f3aab2ad9b23853eec7df22abe7d07717da87#diff-091be8dca53d23592eb00eb9ae25795ffb2fe73937bb1e605f31cd30fc383fa3
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
tests/data/get_config.phphttps://github.com/wp-cli/wp-cli-tests/pull/346/files/912f3aab2ad9b23853eec7df22abe7d07717da87#diff-63ae8078374b7f0a4a3d9db01090097c020e74bce36a8e74c22bb548acdb8e70
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
swissspidyhttps://github.com/swissspidy
July 30, 2026 16:35https://github.com/wp-cli/wp-cli-tests/pull/346#commits-pushed-bf03a2d
https://github.com/swissspidy
PHPCS fixhttps://github.com/wp-cli/wp-cli-tests/pull/346/commits/bf03a2d2af9bfc7dc8383928584e1300dfb58625
bf03a2dhttps://github.com/wp-cli/wp-cli-tests/pull/346/commits/bf03a2d2af9bfc7dc8383928584e1300dfb58625
https://github.com/swissspidy
Address code review commentshttps://github.com/wp-cli/wp-cli-tests/pull/346/commits/626cd2bbf8de71139dd843938ca4a0911c347f22
626cd2bhttps://github.com/wp-cli/wp-cli-tests/pull/346/commits/626cd2bbf8de71139dd843938ca4a0911c347f22
https://github.com/swissspidy
swissspidyhttps://github.com/swissspidy
Jul 30, 2026https://github.com/wp-cli/wp-cli-tests/pull/346#issuecomment-5132465611
@coderabbitaihttps://github.com/coderabbitai
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jul 30, 2026https://github.com/wp-cli/wp-cli-tests/pull/346#issuecomment-5132474864
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
https://github.com/swissspidy
swissspidyhttps://github.com/swissspidy
f405348https://github.com/wp-cli/wp-cli-tests/commit/f405348c7a34567b79e1467206439c5b5a22ff9c
Jul 30, 2026https://github.com/wp-cli/wp-cli-tests/pull/346#event-28728265969
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
https://github.com/swissspidy
swissspidyhttps://github.com/swissspidy
July 30, 2026 15:05https://github.com/wp-cli/wp-cli-tests/pull/346#event-28728267407
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Aug 4, 2026 https://github.com/wp-cli/wp-cli-tests/pull/346#ref-pullrequest-5062200129
PHPStan: Resolve GlobalConfig dynamically in WPCliGetConfigDynamicReturnTypeExtension #347 https://github.com/wp-cli/wp-cli-tests/pull/347
https://github.co/hiddenchars
https://github.com/wp-cli/wp-cli-tests/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fwp-cli-tests%2Fpull%2F346
https://github.com/apps/coderabbitai
coderabbitai[bot] https://github.com/apps/coderabbitai
https://github.com/wp-cli/wp-cli-tests/pull/346/files/912f3aab2ad9b23853eec7df22abe7d07717da87
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
scope:artifacts https://github.com/wp-cli/wp-cli-tests/issues?q=state%3Aopen%20label%3Ascope%3Aartifacts
scope:testing https://github.com/wp-cli/wp-cli-tests/issues?q=state%3Aopen%20label%3Ascope%3Atesting
5.2.0 https://github.com/wp-cli/wp-cli-tests/milestone/127
Please reload this pagehttps://github.com/wp-cli/wp-cli-tests/pull/346
https://github.com/swissspidy
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.