| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:2bf0a4d6-261a-ce05-8d23-b188f7798d98 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BFDC:2BE220:B52E51:F3853A:6B00F501 |
| html-safe-nonce | beea957a1dc40077d90eabaff0ff03164383dfe7df30dfb6a811ee81d33fe790 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkRDOjJCRTIyMDpCNTJFNTE6RjM4NTNBOjZCMDBGNTAxIiwidmlzaXRvcl9pZCI6Ijc3MzM2NTk0NzUyMzE0MzgwODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 71dec224135e78e86f0e283c6b912968b91112a5022fe9042be113d43de504bb |
| hovercard-subject-tag | pull_request:4651356992 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/phpstan/phpstan-src/6610/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/6778e8aed97509d03a61915ebd227e0943832ac6785257d824ea2099b7b4a4cd/phpstan/phpstan-src/pull/6610 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6778e8aed97509d03a61915ebd227e0943832ac6785257d824ea2099b7b4a4cd/phpstan/phpstan-src/pull/6610 |
| og:image:alt | A closure with use (&$x) is analysed today once, at its creation, with a fixpoint entry: $x is the union of every state any number of runs could leave, both inside the body and outside from the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ondrejmirtes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-cache |
| go-import | github.com/phpstan/phpstan-src git https://github.com/phpstan/phpstan-src.git |
| octolytics-dimension-user_id | 16435710 |
| octolytics-dimension-user_login | phpstan |
| octolytics-dimension-repository_id | 219334214 |
| octolytics-dimension-repository_nwo | phpstan/phpstan-src |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 219334214 |
| octolytics-dimension-repository_network_root_nwo | phpstan/phpstan-src |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/phpstan/phpstan-src/pull/6610#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6610 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6610 |
| Sign up | https://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 |
| Reload | https://github.com/phpstan/phpstan-src/pull/6610 |
| Reload | https://github.com/phpstan/phpstan-src/pull/6610 |
| Reload | https://github.com/phpstan/phpstan-src/pull/6610 |
| phpstan | https://github.com/phpstan |
| phpstan-src | https://github.com/phpstan/phpstan-src |
| Code | https://github.com/phpstan/phpstan-src |
| Pull requests186 (186) | https://github.com/phpstan/phpstan-src/pulls |
| Actions | https://github.com/phpstan/phpstan-src/actions |
| Security and quality | https://github.com/phpstan/phpstan-src/security |
| Insights | https://github.com/phpstan/phpstan-src/insights |
| https://github.com/phpstan/phpstan-src |
| ondrejmirtes | https://github.com/ondrejmirtes |
| 2.3.x | https://github.com/phpstan/phpstan-src/tree/2.3.x |
| closure-byref-uses-at-invocation | https://github.com/phpstan/phpstan-src/tree/closure-byref-uses-at-invocation |
| Conversation | https://github.com/phpstan/phpstan-src/pull/6610 |
| Commits3 (3) | https://github.com/phpstan/phpstan-src/pull/6610/commits |
| Checks | https://github.com/phpstan/phpstan-src/pull/6610/checks |
| Files changed | https://github.com/phpstan/phpstan-src/pull/6610/files |
| Apply the effects of a closure's by-ref uses where it is invoked | https://github.com/phpstan/phpstan-src/pull/6610#top |
| ondrejmirtes | https://github.com/ondrejmirtes |
| 2.3.x | https://github.com/phpstan/phpstan-src/tree/2.3.x |
| closure-byref-uses-at-invocation | https://github.com/phpstan/phpstan-src/tree/closure-byref-uses-at-invocation |
|
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| Sep 27, 2026 | https://github.com/phpstan/phpstan-src/pull/6610#issue-5599401052 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6610 |
| #6332 | https://github.com/phpstan/phpstan-src/pull/6332 |
| #6604 | https://github.com/phpstan/phpstan-src/pull/6604 |
| Infer signatures of closures from where their values are sent #6604 | https://github.com/phpstan/phpstan-src/pull/6604 |
| Infer signatures of closures from where their values are sent #6604 | https://github.com/phpstan/phpstan-src/pull/6604 |
| #6604 | https://github.com/phpstan/phpstan-src/pull/6604 |
| phpstan/phpstan#7751 | https://github.com/phpstan/phpstan/issues/7751 |
| phpstan/phpstan#14248 | https://github.com/phpstan/phpstan/issues/14248 |
| Claude Code | https://claude.com/claude-code |
| https://claude.ai/code/session_01VpbB99tJfUmeArX74xqvHv | https://claude.ai/code/session_01VpbB99tJfUmeArX74xqvHv |
| #6604 | https://github.com/phpstan/phpstan-src/pull/6604 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6610 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/02e504d661479d13765cac1abd954f0d14513d8a..e31e14e315a6f7f95e4ac84afeb8a82d888cf86c |
| 02e504d | https://github.com/phpstan/phpstan-src/commit/02e504d661479d13765cac1abd954f0d14513d8a |
| e31e14e | https://github.com/phpstan/phpstan-src/commit/e31e14e315a6f7f95e4ac84afeb8a82d888cf86c |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/02e504d661479d13765cac1abd954f0d14513d8a..e31e14e315a6f7f95e4ac84afeb8a82d888cf86c |
| September 27, 2026 10:41 | https://github.com/phpstan/phpstan-src/pull/6610#event-31927375820 |
| September 27, 2026 10:45 | https://github.com/phpstan/phpstan-src/pull/6610#event-31927487895 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/8176e9ff72896537437eef959cd71868a195ccc9..3bd8a5ea0d57ec8c91e3998b6c3f3dd6c7c7656f |
| 8176e9f | https://github.com/phpstan/phpstan-src/commit/8176e9ff72896537437eef959cd71868a195ccc9 |
| 3bd8a5e | https://github.com/phpstan/phpstan-src/commit/3bd8a5ea0d57ec8c91e3998b6c3f3dd6c7c7656f |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/8176e9ff72896537437eef959cd71868a195ccc9..3bd8a5ea0d57ec8c91e3998b6c3f3dd6c7c7656f |
| September 27, 2026 10:53 | https://github.com/phpstan/phpstan-src/pull/6610#event-31927686743 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| September 27, 2026 11:47 | https://github.com/phpstan/phpstan-src/pull/6610#event-31929205055 |
| https://github.com/phpstan-bot |
| phpstan-bot | https://github.com/phpstan-bot |
| Sep 27, 2026 | https://github.com/phpstan/phpstan-src/pull/6610#issuecomment-5855550852 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6610 |
| ondrejmirtes | https://github.com/ondrejmirtes |
| September 27, 2026 13:48 | https://github.com/phpstan/phpstan-src/pull/6610#commits-pushed-a5324bf |
|
| https://github.com/ondrejmirtes |
|
| https://github.com/claude |
| Apply the effects of a closure's by-ref uses where it is invoked | https://github.com/phpstan/phpstan-src/pull/6610/commits/a5324bfc2c89cedb69a87d75e425f847af6c78f1 |
| a5324bf | https://github.com/phpstan/phpstan-src/pull/6610/commits/a5324bfc2c89cedb69a87d75e425f847af6c78f1 |
| https://claude.ai/code/session_01VpbB99tJfUmeArX74xqvHv | https://claude.ai/code/session_01VpbB99tJfUmeArX74xqvHv |
|
| https://github.com/ondrejmirtes |
|
| https://github.com/claude |
| Add regression tests for closures with by-ref uses invoked later in a… | https://github.com/phpstan/phpstan-src/pull/6610/commits/40fbdb395bbff32b44a87a90a7daba529fb16699 |
| 40fbdb3 | https://github.com/phpstan/phpstan-src/pull/6610/commits/40fbdb395bbff32b44a87a90a7daba529fb16699 |
| https://claude.ai/code/session_01VpbB99tJfUmeArX74xqvHv | https://claude.ai/code/session_01VpbB99tJfUmeArX74xqvHv |
|
| https://github.com/ondrejmirtes |
| Bump expected turbo version | https://github.com/phpstan/phpstan-src/pull/6610/commits/6e1ba3672486c5bd7aac4e1893b6fa07f42f2b6e |
| 6e1ba36 | https://github.com/phpstan/phpstan-src/pull/6610/commits/6e1ba3672486c5bd7aac4e1893b6fa07f42f2b6e |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/3bd8a5ea0d57ec8c91e3998b6c3f3dd6c7c7656f..6e1ba3672486c5bd7aac4e1893b6fa07f42f2b6e |
| 3bd8a5e | https://github.com/phpstan/phpstan-src/commit/3bd8a5ea0d57ec8c91e3998b6c3f3dd6c7c7656f |
| 6e1ba36 | https://github.com/phpstan/phpstan-src/commit/6e1ba3672486c5bd7aac4e1893b6fa07f42f2b6e |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/3bd8a5ea0d57ec8c91e3998b6c3f3dd6c7c7656f..6e1ba3672486c5bd7aac4e1893b6fa07f42f2b6e |
| September 27, 2026 11:48 | https://github.com/phpstan/phpstan-src/pull/6610#event-31929248587 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| 6e1ba36 | https://github.com/phpstan/phpstan-src/commit/6e1ba3672486c5bd7aac4e1893b6fa07f42f2b6e |
| Sep 27, 2026 | https://github.com/phpstan/phpstan-src/pull/6610#event-31929396836 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6610 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| September 27, 2026 11:54 | https://github.com/phpstan/phpstan-src/pull/6610#event-31929397474 |
|
Infer the type of a static variable from what the function body does with it
#6617
| https://github.com/phpstan/phpstan-src/pull/6617 |
|
Close soundness holes in closure signature inference
#6622
| https://github.com/phpstan/phpstan-src/pull/6622 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
|
Sep 28, 2026
| https://github.com/phpstan/phpstan-src/pull/6610#ref-issue-5615884036 |
|
2.3.x-dev: internal error "The initial type of an unresolved template argument is never itself unresolved" (unresolvedTemplateArguments)
phpstan/phpstan#15331
| https://github.com/phpstan/phpstan/issues/15331 |
| https://github.com/janedbal |
| janedbal | https://github.com/janedbal |
|
Oct 6, 2026
| https://github.com/phpstan/phpstan-src/pull/6610#ref-issue-5726453335 |
|
in_array() narrowing drops the list flag from a list shape with optional keys (regression in 2.1.41)
phpstan/phpstan#15391
| https://github.com/phpstan/phpstan/issues/15391 |
| https://github.co/hiddenchars |
| https://github.com/phpstan/phpstan-src/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6610 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6610 |
|
Variable is changing but PHPStan doesn't see that
| https://github.com/phpstan/phpstan/issues/14248 |
|
PHPStan insists a use variable by reference cannot change types
| https://github.com/phpstan/phpstan/issues/7751 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6610 |
|
| https://github.com/ondrejmirtes |
|
| https://github.com/phpstan-bot |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |