| 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:d052f92d-ee77-fdd8-916b-1dffad6a3dd8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8C22:36A3E:987736:CD6EEA:6B00EA84 |
| html-safe-nonce | c3a8eb9ff207dd71866d61ae7c1e5805ca224da01ac993d86902cbad309b179a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzIyOjM2QTNFOjk4NzczNjpDRDZFRUE6NkIwMEVBODQiLCJ2aXNpdG9yX2lkIjoiNzg0NDE0NjE5NDY2MTA0MjgyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | da900fae2d5c422d162aab6357fbb4d1dbffdebf174823c6c6673bfc5e1cf964 |
| hovercard-subject-tag | pull_request:4262378537 |
| 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/6214/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/5871e23f31e759260ea1e2960e5096e3c0734b5808a668dd1f30534ff0254a5e/phpstan/phpstan-src/pull/6214 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5871e23f31e759260ea1e2960e5096e3c0734b5808a668dd1f30534ff0254a5e/phpstan/phpstan-src/pull/6214 |
| og:image:alt | Closes phpstan/phpstan#15004
A long && chain of !== comparisons against a literal union is quadratic. The 400-clause reproducer from the issue goes from 18.4s of CPU to 1.0s, and the growth... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SanderMuller |
| 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/6214#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6214 |
| 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%2F6214 |
| 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/6214 |
| Reload | https://github.com/phpstan/phpstan-src/pull/6214 |
| Reload | https://github.com/phpstan/phpstan-src/pull/6214 |
| 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 |
| SanderMuller | https://github.com/SanderMuller |
| phpstan:2.2.x | https://github.com/phpstan/phpstan-src/tree/2.2.x |
| SanderMuller:15004-boolean-and-flatten | https://github.com/SanderMuller/phpstan-src/tree/15004-boolean-and-flatten |
| Conversation | https://github.com/phpstan/phpstan-src/pull/6214 |
| Commits1 (1) | https://github.com/phpstan/phpstan-src/pull/6214/commits |
| Checks | https://github.com/phpstan/phpstan-src/pull/6214/checks |
| Files changed | https://github.com/phpstan/phpstan-src/pull/6214/files |
| Flatten deep BooleanAnd chains in resolveType() and the falsey context | https://github.com/phpstan/phpstan-src/pull/6214#top |
| SanderMuller | https://github.com/SanderMuller |
| phpstan:2.2.x | https://github.com/phpstan/phpstan-src/tree/2.2.x |
| SanderMuller:15004-boolean-and-flatten | https://github.com/SanderMuller/phpstan-src/tree/15004-boolean-and-flatten |
|
| https://github.com/SanderMuller |
| SanderMuller | https://github.com/SanderMuller |
| Aug 12, 2026 | https://github.com/phpstan/phpstan-src/pull/6214#issue-5131026383 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6214 |
| phpstan/phpstan#15004 | https://github.com/phpstan/phpstan/issues/15004 |
| #5935 | https://github.com/phpstan/phpstan-src/pull/5935 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6214 |
| https://github.com/SanderMuller |
| SanderMuller | https://github.com/SanderMuller |
|
Aug 12, 2026
| https://github.com/phpstan/phpstan-src/pull/6214#ref-issue-4986732465 |
|
Performance: super-linear analysis on literal-union !== narrowing chains
phpstan/phpstan#15004
| https://github.com/phpstan/phpstan/issues/15004 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| Aug 12, 2026 | https://github.com/phpstan/phpstan-src/pull/6214#issuecomment-5267097965 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6214 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| Aug 12, 2026 | https://github.com/phpstan/phpstan-src/pull/6214#issuecomment-5267303675 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6214 |
| https://github.com/SanderMuller |
| SanderMuller | https://github.com/SanderMuller |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/8a71fc9f350188edb87c565c5fa70135d491a602..b3dabee9bc3460ab7a1b55b94e92b49cd0a94662 |
| 8a71fc9 | https://github.com/phpstan/phpstan-src/commit/8a71fc9f350188edb87c565c5fa70135d491a602 |
| b3dabee | https://github.com/phpstan/phpstan-src/commit/b3dabee9bc3460ab7a1b55b94e92b49cd0a94662 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/8a71fc9f350188edb87c565c5fa70135d491a602..b3dabee9bc3460ab7a1b55b94e92b49cd0a94662 |
| August 12, 2026 13:46 | https://github.com/phpstan/phpstan-src/pull/6214#event-29343401390 |
|
| https://github.com/SanderMuller |
|
| https://github.com/claude |
| Flatten deep BooleanAnd chains in resolveType() and the falsey context | https://github.com/phpstan/phpstan-src/pull/6214/commits/8dc651bfb8b9d9682bdd4ea568cd9ee791924905 |
| 8dc651b | https://github.com/phpstan/phpstan-src/pull/6214/commits/8dc651bfb8b9d9682bdd4ea568cd9ee791924905 |
| https://github.com/SanderMuller |
| SanderMuller | https://github.com/SanderMuller |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/b3dabee9bc3460ab7a1b55b94e92b49cd0a94662..8dc651bfb8b9d9682bdd4ea568cd9ee791924905 |
| b3dabee | https://github.com/phpstan/phpstan-src/commit/b3dabee9bc3460ab7a1b55b94e92b49cd0a94662 |
| 8dc651b | https://github.com/phpstan/phpstan-src/commit/8dc651bfb8b9d9682bdd4ea568cd9ee791924905 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/b3dabee9bc3460ab7a1b55b94e92b49cd0a94662..8dc651bfb8b9d9682bdd4ea568cd9ee791924905 |
| August 12, 2026 14:09 | https://github.com/phpstan/phpstan-src/pull/6214#event-29344727174 |
| https://github.com/SanderMuller |
| SanderMuller | https://github.com/SanderMuller |
| Aug 12, 2026 | https://github.com/phpstan/phpstan-src/pull/6214#issuecomment-5267953366 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| phpstan/phpstan#15004 | https://github.com/phpstan/phpstan/issues/15004 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| Single-pass expression analysis groundwork - answer type questions from ExpressionResults #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| phpstan/phpstan#15004 | https://github.com/phpstan/phpstan/issues/15004 |
| #5935 | https://github.com/phpstan/phpstan-src/pull/5935 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6214 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| Aug 12, 2026 | https://github.com/phpstan/phpstan-src/pull/6214#issuecomment-5271724905 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| #5857 | https://github.com/phpstan/phpstan-src/pull/5857 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6214 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| Aug 12, 2026 | https://github.com/phpstan/phpstan-src/pull/6214#event-29361250465 |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Aug 12, 2026
| https://github.com/phpstan/phpstan-src/pull/6214#ref-commit-84f51a6 |
|
| https://github.com/ondrejmirtes |
|
| https://github.com/claude |
| Add the deep BooleanAnd chain tests from PR | https://github.com/phpstan/phpstan-src/commit/84f51a60ba7ee8a76345fdcb975826d299f015cd |
| #6214 | https://github.com/phpstan/phpstan-src/pull/6214 |
| 84f51a6 | https://github.com/phpstan/phpstan-src/commit/84f51a60ba7ee8a76345fdcb975826d299f015cd |
| https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 | https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Aug 12, 2026
| https://github.com/phpstan/phpstan-src/pull/6214#ref-commit-8270380 |
|
| https://github.com/ondrejmirtes |
|
| https://github.com/claude |
| Add the deep BooleanAnd chain tests from PR | https://github.com/phpstan/phpstan-src/commit/8270380e92a3cd69cce4e3ac69f5ab01f7747503 |
| #6214 | https://github.com/phpstan/phpstan-src/pull/6214 |
| 8270380 | https://github.com/phpstan/phpstan-src/commit/8270380e92a3cd69cce4e3ac69f5ab01f7747503 |
| https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 | https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Aug 13, 2026
| https://github.com/phpstan/phpstan-src/pull/6214#ref-commit-72883c8 |
|
| https://github.com/ondrejmirtes |
|
| https://github.com/claude |
| Add the deep BooleanAnd chain tests from PR | https://github.com/phpstan/phpstan-src/commit/72883c88cc60baa154d0180491fbda8d85104eb6 |
| #6214 | https://github.com/phpstan/phpstan-src/pull/6214 |
| 72883c8 | https://github.com/phpstan/phpstan-src/commit/72883c88cc60baa154d0180491fbda8d85104eb6 |
| https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 | https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Aug 13, 2026
| https://github.com/phpstan/phpstan-src/pull/6214#ref-commit-df4aa8e |
|
| https://github.com/ondrejmirtes |
|
| https://github.com/claude |
| Add the deep BooleanAnd chain tests from PR | https://github.com/phpstan/phpstan-src/commit/df4aa8e0154522cd362f00cc55d138d9e187fac4 |
| #6214 | https://github.com/phpstan/phpstan-src/pull/6214 |
| df4aa8e | https://github.com/phpstan/phpstan-src/commit/df4aa8e0154522cd362f00cc55d138d9e187fac4 |
| https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 | https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Aug 13, 2026
| https://github.com/phpstan/phpstan-src/pull/6214#ref-commit-5084233 |
|
| https://github.com/ondrejmirtes |
|
| https://github.com/claude |
| Add the deep BooleanAnd chain tests from PR | https://github.com/phpstan/phpstan-src/commit/508423384234fa08713ce0b4383713bf3786d6d9 |
| #6214 | https://github.com/phpstan/phpstan-src/pull/6214 |
| 5084233 | https://github.com/phpstan/phpstan-src/commit/508423384234fa08713ce0b4383713bf3786d6d9 |
| https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 | https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Aug 13, 2026
| https://github.com/phpstan/phpstan-src/pull/6214#ref-commit-f2af409 |
|
| https://github.com/ondrejmirtes |
|
| https://github.com/claude |
| Add the deep BooleanAnd chain tests from PR | https://github.com/phpstan/phpstan-src/commit/f2af40930ef25149b3b93a6e81ad1206ec82ab67 |
| #6214 | https://github.com/phpstan/phpstan-src/pull/6214 |
| f2af409 | https://github.com/phpstan/phpstan-src/commit/f2af40930ef25149b3b93a6e81ad1206ec82ab67 |
| https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 | https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Aug 13, 2026
| https://github.com/phpstan/phpstan-src/pull/6214#ref-commit-859f4c2 |
|
| https://github.com/ondrejmirtes |
|
| https://github.com/claude |
| Add the deep BooleanAnd chain tests from PR | https://github.com/phpstan/phpstan-src/commit/859f4c227c7a66b6727a65e2efc801164f9396f4 |
| #6214 | https://github.com/phpstan/phpstan-src/pull/6214 |
| 859f4c2 | https://github.com/phpstan/phpstan-src/commit/859f4c227c7a66b6727a65e2efc801164f9396f4 |
| https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 | https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7 |
| 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%2F6214 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6214 |
|
Performance: super-linear analysis on literal-union !== narrowing chains
| https://github.com/phpstan/phpstan/issues/15004 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6214 |
|
| https://github.com/SanderMuller |
|
| 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 |