| 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:1f785587-e00b-f9b5-029d-cb15ac64366b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A20A:1F7384:7F8CA2:AAF820:6B00DD04 |
| html-safe-nonce | 28d1733bd61a530b03c84c372c2d3db7463e21d75a48778520c9d3877e2e5977 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjBBOjFGNzM4NDo3RjhDQTI6QUFGODIwOjZCMDBERDA0IiwidmlzaXRvcl9pZCI6IjE1NjIzMTgwMTY2OTAwNTIzNTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7db3235c108a8fab7e689a7e7e840ac882b3355cc67971b8bf2dda23fb2b85d5 |
| hovercard-subject-tag | pull_request:3846078257 |
| 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/5848/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/e980aec1e126f9db269178265b80cd32047797b7ea2339a949732d4fd14402e2/phpstan/phpstan-src/pull/5848 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e980aec1e126f9db269178265b80cd32047797b7ea2339a949732d4fd14402e2/phpstan/phpstan-src/pull/5848 |
| og:image:alt | Summary
When two if statements reuse the same left-hand condition $enum !== Case::X (a 2-case enum narrowed with !==), and the first if additionally narrows an object property via && $obj-&... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | phpstan-bot |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| 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 | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| 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/5848#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F5848 |
| 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%2F5848 |
| 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/5848 |
| Reload | https://github.com/phpstan/phpstan-src/pull/5848 |
| Reload | https://github.com/phpstan/phpstan-src/pull/5848 |
| 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 |
| phpstan:2.2.x | https://github.com/phpstan/phpstan-src/tree/2.2.x |
| phpstan-bot:create-pull-request/patch-pmkcr7d | https://github.com/phpstan-bot/phpstan-src/tree/create-pull-request/patch-pmkcr7d |
| Conversation | https://github.com/phpstan/phpstan-src/pull/5848 |
| Commits2 (2) | https://github.com/phpstan/phpstan-src/pull/5848/commits |
| Checks | https://github.com/phpstan/phpstan-src/pull/5848/checks |
| Files changed | https://github.com/phpstan/phpstan-src/pull/5848/files |
| Skip conditional expression guard when guard type is a subtype of the other branch's value | https://github.com/phpstan/phpstan-src/pull/5848#top |
| ondrejmirtes | https://github.com/ondrejmirtes |
| phpstan:2.2.x | https://github.com/phpstan/phpstan-src/tree/2.2.x |
| phpstan-bot:create-pull-request/patch-pmkcr7d | https://github.com/phpstan-bot/phpstan-src/tree/create-pull-request/patch-pmkcr7d |
|
| https://github.com/phpstan-bot |
| phpstan-bot | https://github.com/phpstan-bot |
| Jun 11, 2026 | https://github.com/phpstan/phpstan-src/pull/5848#issue-4639120273 |
| phpstan/phpstan#14807 | https://github.com/phpstan/phpstan/issues/14807 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5848 |
|
| https://github.com/phpstan-bot |
| Skip conditional expression guard when guard type is a subtype of the… | https://github.com/phpstan/phpstan-src/pull/5848/commits/5ab52209951b865041a6066449943b2ce4d072e5 |
| 5ab5220 | https://github.com/phpstan/phpstan-src/pull/5848/commits/5ab52209951b865041a6066449943b2ce4d072e5 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Jun 11, 2026
| https://github.com/phpstan/phpstan-src/pull/5848#pullrequestreview-4475522130 |
|
View reviewed changes
| https://github.com/phpstan/phpstan-src/pull/5848/files/5ab52209951b865041a6066449943b2ce4d072e5 |
| tests/PHPStan/Analyser/nsrt/bug-14807.php | https://github.com/phpstan/phpstan-src/pull/5848/files/5ab52209951b865041a6066449943b2ce4d072e5#diff-ec28d97823145281239e9fbf9794feac888f6f1354a8cc9b35eb1d5b2e03a466 |
| ondrejmirtes | https://github.com/ondrejmirtes |
| Jun 11, 2026 | https://github.com/phpstan/phpstan-src/pull/5848#discussion_r3394832914 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5848 |
| phpstan-bot | https://github.com/phpstan-bot |
| Jun 11, 2026 | https://github.com/phpstan/phpstan-src/pull/5848#discussion_r3394860725 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5848 |
|
| https://github.com/phpstan-bot |
|
| https://github.com/claude |
| Add '// lint >= 8.1' directive to bug-14807 test data files | https://github.com/phpstan/phpstan-src/pull/5848/commits/6a8da51c6216d4a946ec968365be6ee6cec9ec05 |
| 6a8da51 | https://github.com/phpstan/phpstan-src/pull/5848/commits/6a8da51c6216d4a946ec968365be6ee6cec9ec05 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| June 11, 2026 09:42 | https://github.com/phpstan/phpstan-src/pull/5848#event-26618348538 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Jun 11, 2026
| https://github.com/phpstan/phpstan-src/pull/5848#pullrequestreview-4475556164 |
|
View reviewed changes
| https://github.com/phpstan/phpstan-src/pull/5848/files/6a8da51c6216d4a946ec968365be6ee6cec9ec05 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| ad34ca7 | https://github.com/phpstan/phpstan-src/commit/ad34ca73954eed22f1721a910824d9b9e454993b |
| Jun 11, 2026 | https://github.com/phpstan/phpstan-src/pull/5848#event-26618357275 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5848 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| June 11, 2026 09:43 | https://github.com/phpstan/phpstan-src/pull/5848#event-26618358092 |
| https://github.com/phpstan-bot |
| phpstan-bot | https://github.com/phpstan-bot |
|
Jun 14, 2026
| https://github.com/phpstan/phpstan-src/pull/5848#ref-pullrequest-4660304902 |
|
Record conditional definedness guards when merging if branches with a side-effect-free condition
#5875
| https://github.com/phpstan/phpstan-src/pull/5875 |
| https://github.com/momala454 |
| momala454 | https://github.com/momala454 |
|
Jul 3, 2026
| https://github.com/phpstan/phpstan-src/pull/5848#ref-issue-4801980335 |
|
Incomplete fix for #14807: conditional narrowing still leaks when an intermediate if narrows another value, and 2.2.3 added a new in_array/function.alreadyNarrowedType symptom
phpstan/phpstan#14908
| https://github.com/phpstan/phpstan/issues/14908 |
| https://github.com/phpstan-bot |
| phpstan-bot | https://github.com/phpstan-bot |
|
Jul 3, 2026
| https://github.com/phpstan/phpstan-src/pull/5848#ref-pullrequest-4802319911 |
|
Skip boolean conditional expression holders when the antecedent side is an unsplittable compound boolean
#5983
| https://github.com/phpstan/phpstan-src/pull/5983 |
|
Performance regression: reverse isSuperTypeOf() guard check in MutatingScope (phpstan-src#5848) costs 13–21% on condition-heavy benches
phpstan/phpstan#14920
| https://github.com/phpstan/phpstan/issues/14920 |
|
Performance regression: switch-heavy array-shape code ~30% slower since the type "reasons" commits (bench bug-7581.php)
phpstan/phpstan#14918
| https://github.com/phpstan/phpstan/issues/14918 |
|
Performance regression: deep !== chains ~30pp slower since TypeSpecifier→ExprHandler dispatch refactor (bench bug-14207-and.php, and-chain-truthy-blowup.php)
phpstan/phpstan#14919
| https://github.com/phpstan/phpstan/issues/14919 |
|
Performance regression: keeping subtype-absorbed conditional targets (phpstan-src#5876) adds ~15% on constant-array loop code (bench bug-10538.php)
phpstan/phpstan#14921
| https://github.com/phpstan/phpstan/issues/14921 |
| https://github.com/phpstan-bot |
| phpstan-bot | https://github.com/phpstan-bot |
|
Jul 4, 2026
| https://github.com/phpstan/phpstan-src/pull/5848#ref-pullrequest-4810218448 |
|
Cache per-guard isSuperTypeOf() results in createConditionalExpressions() instead of recomputing them per target
#6001
| https://github.com/phpstan/phpstan-src/pull/6001 |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Jul 4, 2026
| https://github.com/phpstan/phpstan-src/pull/5848#ref-commit-ef3fe97 |
|
| https://github.com/ondrejmirtes |
| Cache per-guard isSuperTypeOf() results in `createConditionalExpres… | https://github.com/phpstan/phpstan-src/commit/ef3fe9765aab1d1b1d092f21b30338f2b8ccebe0 |
| ef3fe97 | https://github.com/phpstan/phpstan-src/commit/ef3fe9765aab1d1b1d092f21b30338f2b8ccebe0 |
| #5848 | https://github.com/phpstan/phpstan-src/pull/5848 |
| #5848 | https://github.com/phpstan/phpstan-src/pull/5848 |
| #5876 | https://github.com/phpstan/phpstan-src/pull/5876 |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Jul 4, 2026
| https://github.com/phpstan/phpstan-src/pull/5848#ref-commit-6807620 |
|
| https://github.com/ondrejmirtes |
| Skip constant-array guards when creating conditional expressions for … | https://github.com/phpstan/phpstan-src/commit/68076207e8ec1fba7cde37b4fe22e39fd75abbdd |
| 6807620 | https://github.com/phpstan/phpstan-src/commit/68076207e8ec1fba7cde37b4fe22e39fd75abbdd |
| #5876 | https://github.com/phpstan/phpstan-src/pull/5876 |
| #5848 | https://github.com/phpstan/phpstan-src/pull/5848 |
| #5876 | https://github.com/phpstan/phpstan-src/pull/5876 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Nov 6, 2026
| https://github.com/phpstan/phpstan-src/pull/5848#ref-pullrequest-6249720312 |
|
Decide sealed array shapes with disjoint required keys before comparing values
#6986
| https://github.com/phpstan/phpstan-src/pull/6986 |
| 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%2F5848 |
|
| https://github.com/ondrejmirtes |
|
ondrejmirtes
| https://github.com/ondrejmirtes |
|
| https://github.com/phpstan/phpstan-src/pull/5848/files/6a8da51c6216d4a946ec968365be6ee6cec9ec05 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5848 |
|
Object property narrowing leaks out of a previous if when a 2-case enum is narrowed with !==
| https://github.com/phpstan/phpstan/issues/14807 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5848 |
|
| https://github.com/phpstan-bot |
|
| https://github.com/ondrejmirtes |
|
| 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 |