René's URL Explorer Experiment


Title: Report variable writes whose value never reaches a use, per array offset by ondrejmirtes · Pull Request #6334 · phpstan/phpstan-src · GitHub

Open Graph Title: Report variable writes whose value never reaches a use, per array offset by ondrejmirtes · Pull Request #6334 · phpstan/phpstan-src

X Title: Report variable writes whose value never reaches a use, per array offset by ondrejmirtes · Pull Request #6334 · phpstan/phpstan-src

Description: PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - Report variable writes whose value never reaches a use, per array offset by ondrejmirtes · Pull Request #6334 · phpstan/phpstan-src

Open Graph Description: Follow-up to #6330 (merged): the two refinements listed there, the unset() false negative, and a few things found while dogfooding. Value flow (Psalm's "better unused variable detection&qu...

X Description: Follow-up to #6330 (merged): the two refinements listed there, the unset() false negative, and a few things found while dogfooding. Value flow (Psalm's "better unused variable dete...

Opengraph URL: https://github.com/phpstan/phpstan-src/pull/6334

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:fa6a8990-64b6-b504-bc75-84d2d9dfc59d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA47A:882E2:117B177:1713E46:6B010E0E
html-safe-noncecde36456567772e3cc7a678be7a8ab291975305d3286d01b991031a8779e5a32
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDdBOjg4MkUyOjExN0IxNzc6MTcxM0U0Njo2QjAxMEUwRSIsInZpc2l0b3JfaWQiOiI2Njk5ODE2ODYyMzI0MTY2MTU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd39db6846c28a1ce15d7c58128318e7b14d361add121f68bfea438c97c0ced09
hovercard-subject-tagpull_request:4414442827
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/phpstan/phpstan-src/6334/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b2a26676a9cfe71aadec63c150b71fcbd05911fb93ee80eab5fc2b0e49f7c759/phpstan/phpstan-src/pull/6334
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b2a26676a9cfe71aadec63c150b71fcbd05911fb93ee80eab5fc2b0e49f7c759/phpstan/phpstan-src/pull/6334
og:image:altFollow-up to #6330 (merged): the two refinements listed there, the unset() false negative, and a few things found while dogfooding. Value flow (Psalm's "better unused variable detection&qu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameondrejmirtes
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-cache
go-importgithub.com/phpstan/phpstan-src git https://github.com/phpstan/phpstan-src.git
octolytics-dimension-user_id16435710
octolytics-dimension-user_loginphpstan
octolytics-dimension-repository_id219334214
octolytics-dimension-repository_nwophpstan/phpstan-src
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id219334214
octolytics-dimension-repository_network_root_nwophpstan/phpstan-src
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpstan/phpstan-src/pull/6334#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6334
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%2Fphpstan%2Fphpstan-src%2Fpull%2F6334
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=phpstan%2Fphpstan-src
Reloadhttps://github.com/phpstan/phpstan-src/pull/6334
Reloadhttps://github.com/phpstan/phpstan-src/pull/6334
Reloadhttps://github.com/phpstan/phpstan-src/pull/6334
phpstanhttps://github.com/phpstan
phpstan-srchttps://github.com/phpstan/phpstan-src
Codehttps://github.com/phpstan/phpstan-src
Pull requests186 (186)https://github.com/phpstan/phpstan-src/pulls
Actionshttps://github.com/phpstan/phpstan-src/actions
Security and qualityhttps://github.com/phpstan/phpstan-src/security
Insightshttps://github.com/phpstan/phpstan-src/insights
https://github.com/phpstan/phpstan-src
ondrejmirteshttps://github.com/ondrejmirtes
2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
unused-variables-followupshttps://github.com/phpstan/phpstan-src/tree/unused-variables-followups
Conversationhttps://github.com/phpstan/phpstan-src/pull/6334
Commits4 (4)https://github.com/phpstan/phpstan-src/pull/6334/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/6334/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/6334/files
Report variable writes whose value never reaches a use, per array offsethttps://github.com/phpstan/phpstan-src/pull/6334#top
ondrejmirteshttps://github.com/ondrejmirtes
2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
unused-variables-followupshttps://github.com/phpstan/phpstan-src/tree/unused-variables-followups
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Sep 1, 2026https://github.com/phpstan/phpstan-src/pull/6334#issue-5314607981
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6334
#6330https://github.com/phpstan/phpstan-src/pull/6330
Report values assigned to variables that are never read #6330https://github.com/phpstan/phpstan-src/pull/6330
Claude Codehttps://claude.com/claude-code
https://claude.ai/code/session_01CbZPnVnRJDLbnqmtD3sYSyhttps://claude.ai/code/session_01CbZPnVnRJDLbnqmtD3sYSy
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6334
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Sep 5, 2026 https://github.com/phpstan/phpstan-src/pull/6334#ref-issue-5360973125
Make foreach.valueOverwrite / keyOverwrite value-flow-aware to skip harmless loop-variable reuse phpstan/phpstan-strict-rules#332 https://github.com/phpstan/phpstan-strict-rules/issues/332
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
force-pushedhttps://github.com/phpstan/phpstan-src/compare/24412984c5a5939c4b63d8f59546fa5bca931102..805b8ab5fa12801a9c564232d6554db73ca54ff7
2441298https://github.com/phpstan/phpstan-src/commit/24412984c5a5939c4b63d8f59546fa5bca931102
805b8abhttps://github.com/phpstan/phpstan-src/commit/805b8ab5fa12801a9c564232d6554db73ca54ff7
Compare https://github.com/phpstan/phpstan-src/compare/24412984c5a5939c4b63d8f59546fa5bca931102..805b8ab5fa12801a9c564232d6554db73ca54ff7
September 7, 2026 15:49https://github.com/phpstan/phpstan-src/pull/6334#event-30702337394
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
force-pushedhttps://github.com/phpstan/phpstan-src/compare/6041802292d0e92065ff2a915cc398038cb945ba..8e260fa6b9ec6ca0680dcaeac330cc8151f7ca9e
6041802https://github.com/phpstan/phpstan-src/commit/6041802292d0e92065ff2a915cc398038cb945ba
8e260fahttps://github.com/phpstan/phpstan-src/commit/8e260fa6b9ec6ca0680dcaeac330cc8151f7ca9e
Compare https://github.com/phpstan/phpstan-src/compare/6041802292d0e92065ff2a915cc398038cb945ba..8e260fa6b9ec6ca0680dcaeac330cc8151f7ca9e
September 7, 2026 16:33https://github.com/phpstan/phpstan-src/pull/6334#event-30704321737
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
force-pushedhttps://github.com/phpstan/phpstan-src/compare/f13bef328a48e2ecc21c1f23177806901cbd3524..0a3ccf852d7da3a0e312ed970a02f2e94c343744
f13bef3https://github.com/phpstan/phpstan-src/commit/f13bef328a48e2ecc21c1f23177806901cbd3524
0a3ccf8https://github.com/phpstan/phpstan-src/commit/0a3ccf852d7da3a0e312ed970a02f2e94c343744
Compare https://github.com/phpstan/phpstan-src/compare/f13bef328a48e2ecc21c1f23177806901cbd3524..0a3ccf852d7da3a0e312ed970a02f2e94c343744
September 9, 2026 20:44https://github.com/phpstan/phpstan-src/pull/6334#event-30857948011
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
force-pushedhttps://github.com/phpstan/phpstan-src/compare/8e260fa6b9ec6ca0680dcaeac330cc8151f7ca9e..0de7e0c4f102225cae8205a7ef008db6d45a051b
8e260fahttps://github.com/phpstan/phpstan-src/commit/8e260fa6b9ec6ca0680dcaeac330cc8151f7ca9e
0de7e0chttps://github.com/phpstan/phpstan-src/commit/0de7e0c4f102225cae8205a7ef008db6d45a051b
Compare https://github.com/phpstan/phpstan-src/compare/8e260fa6b9ec6ca0680dcaeac330cc8151f7ca9e..0de7e0c4f102225cae8205a7ef008db6d45a051b
September 10, 2026 07:23https://github.com/phpstan/phpstan-src/pull/6334#event-30883571343
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
force-pushedhttps://github.com/phpstan/phpstan-src/compare/5de5f2f6335d8f88ed6b829df5c682e7a9cb8e20..d21d791fb9689f89b207fd2145e77d4416ecac8f
5de5f2fhttps://github.com/phpstan/phpstan-src/commit/5de5f2f6335d8f88ed6b829df5c682e7a9cb8e20
d21d791https://github.com/phpstan/phpstan-src/commit/d21d791fb9689f89b207fd2145e77d4416ecac8f
Compare https://github.com/phpstan/phpstan-src/compare/5de5f2f6335d8f88ed6b829df5c682e7a9cb8e20..d21d791fb9689f89b207fd2145e77d4416ecac8f
September 10, 2026 08:36https://github.com/phpstan/phpstan-src/pull/6334#event-30888151703
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
force-pushedhttps://github.com/phpstan/phpstan-src/compare/e76cfae1c08be9bd8b4137f7687be7085ce7b93a..8dce7987039ff0f701d8a0816abce472b06968d2
e76cfaehttps://github.com/phpstan/phpstan-src/commit/e76cfae1c08be9bd8b4137f7687be7085ce7b93a
8dce798https://github.com/phpstan/phpstan-src/commit/8dce7987039ff0f701d8a0816abce472b06968d2
Compare https://github.com/phpstan/phpstan-src/compare/e76cfae1c08be9bd8b4137f7687be7085ce7b93a..8dce7987039ff0f701d8a0816abce472b06968d2
September 10, 2026 11:48https://github.com/phpstan/phpstan-src/pull/6334#event-30899208848
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
force-pushedhttps://github.com/phpstan/phpstan-src/compare/4f5a86eed19aafed1ab32ee85d4eb9758209c752..5195842bb8ce4e5b9ca885e5e714adfb2174cc80
4f5a86ehttps://github.com/phpstan/phpstan-src/commit/4f5a86eed19aafed1ab32ee85d4eb9758209c752
5195842https://github.com/phpstan/phpstan-src/commit/5195842bb8ce4e5b9ca885e5e714adfb2174cc80
Compare https://github.com/phpstan/phpstan-src/compare/4f5a86eed19aafed1ab32ee85d4eb9758209c752..5195842bb8ce4e5b9ca885e5e714adfb2174cc80
September 10, 2026 12:03https://github.com/phpstan/phpstan-src/pull/6334#event-30900039798
September 10, 2026 12:04https://github.com/phpstan/phpstan-src/pull/6334#event-30900092438
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
force-pushedhttps://github.com/phpstan/phpstan-src/compare/a7c02cffc3f67b8e979e562ccab3ad5012aab7ff..85d34e338a47d530e2d2d609354e007308d14bac
a7c02cfhttps://github.com/phpstan/phpstan-src/commit/a7c02cffc3f67b8e979e562ccab3ad5012aab7ff
85d34e3https://github.com/phpstan/phpstan-src/commit/85d34e338a47d530e2d2d609354e007308d14bac
Compare https://github.com/phpstan/phpstan-src/compare/a7c02cffc3f67b8e979e562ccab3ad5012aab7ff..85d34e338a47d530e2d2d609354e007308d14bac
September 11, 2026 09:23https://github.com/phpstan/phpstan-src/pull/6334#event-30961910842
ondrejmirteshttps://github.com/ondrejmirtes
September 11, 2026 11:35https://github.com/phpstan/phpstan-src/pull/6334#commits-pushed-a323b66
https://github.com/ondrejmirtes
https://github.com/claude
Track unused values and array offset assignmentshttps://github.com/phpstan/phpstan-src/pull/6334/commits/a323b661567de2948e151e92d37a3e1df83ee143
a323b66https://github.com/phpstan/phpstan-src/pull/6334/commits/a323b661567de2948e151e92d37a3e1df83ee143
https://claude.ai/code/session_018CZ79ZBiMt4KWgU3uy4Y4jhttps://claude.ai/code/session_018CZ79ZBiMt4KWgU3uy4Y4j
https://github.com/ondrejmirtes
https://github.com/claude
Report constant-offset assignments that are redundanthttps://github.com/phpstan/phpstan-src/pull/6334/commits/66ff8bb4f6b959c09a8bce519327631ec7de3744
66ff8bbhttps://github.com/phpstan/phpstan-src/pull/6334/commits/66ff8bb4f6b959c09a8bce519327631ec7de3744
https://claude.ai/code/session_018CZ79ZBiMt4KWgU3uy4Y4jhttps://claude.ai/code/session_018CZ79ZBiMt4KWgU3uy4Y4j
https://github.com/ondrejmirtes
https://github.com/claude
Report parameters and captures that only flow into unused valueshttps://github.com/phpstan/phpstan-src/pull/6334/commits/a3fca1979c27df9b353cabdc3fab7d27a5a37aad
a3fca19https://github.com/phpstan/phpstan-src/pull/6334/commits/a3fca1979c27df9b353cabdc3fab7d27a5a37aad
https://claude.ai/code/session_018CZ79ZBiMt4KWgU3uy4Y4jhttps://claude.ai/code/session_018CZ79ZBiMt4KWgU3uy4Y4j
https://github.com/ondrejmirtes
https://github.com/claude
Do not report values flowing into a write that is reported as never readhttps://github.com/phpstan/phpstan-src/pull/6334/commits/59b243fab985f1a0cf850c1f458b6ae165ea664b
59b243fhttps://github.com/phpstan/phpstan-src/pull/6334/commits/59b243fab985f1a0cf850c1f458b6ae165ea664b
https://claude.ai/code/session_018CZ79ZBiMt4KWgU3uy4Y4jhttps://claude.ai/code/session_018CZ79ZBiMt4KWgU3uy4Y4j
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
force-pushedhttps://github.com/phpstan/phpstan-src/compare/85d34e338a47d530e2d2d609354e007308d14bac..59b243fab985f1a0cf850c1f458b6ae165ea664b
85d34e3https://github.com/phpstan/phpstan-src/commit/85d34e338a47d530e2d2d609354e007308d14bac
59b243fhttps://github.com/phpstan/phpstan-src/commit/59b243fab985f1a0cf850c1f458b6ae165ea664b
Compare https://github.com/phpstan/phpstan-src/compare/85d34e338a47d530e2d2d609354e007308d14bac..59b243fab985f1a0cf850c1f458b6ae165ea664b
September 11, 2026 09:35https://github.com/phpstan/phpstan-src/pull/6334#event-30962544252
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
d252cb3https://github.com/phpstan/phpstan-src/commit/d252cb365f23a8ae7e43562669bc90e2bb431ac5
Sep 11, 2026https://github.com/phpstan/phpstan-src/pull/6334#event-30962674456
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6334
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
September 11, 2026 09:37https://github.com/phpstan/phpstan-src/pull/6334#event-30962676354
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Sep 11, 2026 https://github.com/phpstan/phpstan-src/pull/6334#ref-pullrequest-5425329149
Widen only the variables a loop can write when its scope converges #6421 https://github.com/phpstan/phpstan-src/pull/6421
https://github.co/hiddenchars
https://github.com/phpstan/phpstan-src/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%2Fphpstan%2Fphpstan-src%2Fpull%2F6334
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6334
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6334
https://github.com/ondrejmirtes
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.