René's URL Explorer Experiment


Title: Flatten deep BooleanAnd chains in resolveType() and the falsey context by SanderMuller · Pull Request #6214 · phpstan/phpstan-src · GitHub

Open Graph Title: Flatten deep BooleanAnd chains in resolveType() and the falsey context by SanderMuller · Pull Request #6214 · phpstan/phpstan-src

X Title: Flatten deep BooleanAnd chains in resolveType() and the falsey context by SanderMuller · Pull Request #6214 · phpstan/phpstan-src

Description: PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - Flatten deep BooleanAnd chains in resolveType() and the falsey context by SanderMuller · Pull Request #6214 · phpstan/phpstan-src

Open Graph Description: 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...

X Description: 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 th...

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

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:d052f92d-ee77-fdd8-916b-1dffad6a3dd8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8C22:36A3E:987736:CD6EEA:6B00EA84
html-safe-noncec3a8eb9ff207dd71866d61ae7c1e5805ca224da01ac993d86902cbad309b179a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzIyOjM2QTNFOjk4NzczNjpDRDZFRUE6NkIwMEVBODQiLCJ2aXNpdG9yX2lkIjoiNzg0NDE0NjE5NDY2MTA0MjgyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacda900fae2d5c422d162aab6357fbb4d1dbffdebf174823c6c6673bfc5e1cf964
hovercard-subject-tagpull_request:4262378537
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/6214/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5871e23f31e759260ea1e2960e5096e3c0734b5808a668dd1f30534ff0254a5e/phpstan/phpstan-src/pull/6214
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5871e23f31e759260ea1e2960e5096e3c0734b5808a668dd1f30534ff0254a5e/phpstan/phpstan-src/pull/6214
og:image:altCloses 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSanderMuller
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
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
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpstan/phpstan-src/pull/6214#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6214
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%2F6214
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/6214
Reloadhttps://github.com/phpstan/phpstan-src/pull/6214
Reloadhttps://github.com/phpstan/phpstan-src/pull/6214
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
SanderMullerhttps://github.com/SanderMuller
phpstan:2.2.xhttps://github.com/phpstan/phpstan-src/tree/2.2.x
SanderMuller:15004-boolean-and-flattenhttps://github.com/SanderMuller/phpstan-src/tree/15004-boolean-and-flatten
Conversationhttps://github.com/phpstan/phpstan-src/pull/6214
Commits1 (1)https://github.com/phpstan/phpstan-src/pull/6214/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/6214/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/6214/files
Flatten deep BooleanAnd chains in resolveType() and the falsey contexthttps://github.com/phpstan/phpstan-src/pull/6214#top
SanderMullerhttps://github.com/SanderMuller
phpstan:2.2.xhttps://github.com/phpstan/phpstan-src/tree/2.2.x
SanderMuller:15004-boolean-and-flattenhttps://github.com/SanderMuller/phpstan-src/tree/15004-boolean-and-flatten
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
Aug 12, 2026https://github.com/phpstan/phpstan-src/pull/6214#issue-5131026383
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6214
phpstan/phpstan#15004https://github.com/phpstan/phpstan/issues/15004
#5935https://github.com/phpstan/phpstan-src/pull/5935
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6214
https://github.com/SanderMuller
SanderMullerhttps://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
ondrejmirteshttps://github.com/ondrejmirtes
Aug 12, 2026https://github.com/phpstan/phpstan-src/pull/6214#issuecomment-5267097965
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6214
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Aug 12, 2026https://github.com/phpstan/phpstan-src/pull/6214#issuecomment-5267303675
#5857https://github.com/phpstan/phpstan-src/pull/5857
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6214
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
force-pushedhttps://github.com/phpstan/phpstan-src/compare/8a71fc9f350188edb87c565c5fa70135d491a602..b3dabee9bc3460ab7a1b55b94e92b49cd0a94662
8a71fc9https://github.com/phpstan/phpstan-src/commit/8a71fc9f350188edb87c565c5fa70135d491a602
b3dabeehttps://github.com/phpstan/phpstan-src/commit/b3dabee9bc3460ab7a1b55b94e92b49cd0a94662
Compare https://github.com/phpstan/phpstan-src/compare/8a71fc9f350188edb87c565c5fa70135d491a602..b3dabee9bc3460ab7a1b55b94e92b49cd0a94662
August 12, 2026 13:46https://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 contexthttps://github.com/phpstan/phpstan-src/pull/6214/commits/8dc651bfb8b9d9682bdd4ea568cd9ee791924905
8dc651bhttps://github.com/phpstan/phpstan-src/pull/6214/commits/8dc651bfb8b9d9682bdd4ea568cd9ee791924905
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
force-pushedhttps://github.com/phpstan/phpstan-src/compare/b3dabee9bc3460ab7a1b55b94e92b49cd0a94662..8dc651bfb8b9d9682bdd4ea568cd9ee791924905
b3dabeehttps://github.com/phpstan/phpstan-src/commit/b3dabee9bc3460ab7a1b55b94e92b49cd0a94662
8dc651bhttps://github.com/phpstan/phpstan-src/commit/8dc651bfb8b9d9682bdd4ea568cd9ee791924905
Compare https://github.com/phpstan/phpstan-src/compare/b3dabee9bc3460ab7a1b55b94e92b49cd0a94662..8dc651bfb8b9d9682bdd4ea568cd9ee791924905
August 12, 2026 14:09https://github.com/phpstan/phpstan-src/pull/6214#event-29344727174
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
Aug 12, 2026https://github.com/phpstan/phpstan-src/pull/6214#issuecomment-5267953366
#5857https://github.com/phpstan/phpstan-src/pull/5857
#5857https://github.com/phpstan/phpstan-src/pull/5857
#5857https://github.com/phpstan/phpstan-src/pull/5857
#5857https://github.com/phpstan/phpstan-src/pull/5857
#5857https://github.com/phpstan/phpstan-src/pull/5857
#5857https://github.com/phpstan/phpstan-src/pull/5857
#5857https://github.com/phpstan/phpstan-src/pull/5857
#5857https://github.com/phpstan/phpstan-src/pull/5857
phpstan/phpstan#15004https://github.com/phpstan/phpstan/issues/15004
#5857https://github.com/phpstan/phpstan-src/pull/5857
#5857https://github.com/phpstan/phpstan-src/pull/5857
Single-pass expression analysis groundwork - answer type questions from ExpressionResults #5857https://github.com/phpstan/phpstan-src/pull/5857
phpstan/phpstan#15004https://github.com/phpstan/phpstan/issues/15004
#5935https://github.com/phpstan/phpstan-src/pull/5935
#5857https://github.com/phpstan/phpstan-src/pull/5857
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6214
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Aug 12, 2026https://github.com/phpstan/phpstan-src/pull/6214#issuecomment-5271724905
#5857https://github.com/phpstan/phpstan-src/pull/5857
#5857https://github.com/phpstan/phpstan-src/pull/5857
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6214
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Aug 12, 2026https://github.com/phpstan/phpstan-src/pull/6214#event-29361250465
ondrejmirteshttps://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 PRhttps://github.com/phpstan/phpstan-src/commit/84f51a60ba7ee8a76345fdcb975826d299f015cd
#6214https://github.com/phpstan/phpstan-src/pull/6214
84f51a6https://github.com/phpstan/phpstan-src/commit/84f51a60ba7ee8a76345fdcb975826d299f015cd
https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7
ondrejmirteshttps://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 PRhttps://github.com/phpstan/phpstan-src/commit/8270380e92a3cd69cce4e3ac69f5ab01f7747503
#6214https://github.com/phpstan/phpstan-src/pull/6214
8270380https://github.com/phpstan/phpstan-src/commit/8270380e92a3cd69cce4e3ac69f5ab01f7747503
https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7
ondrejmirteshttps://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 PRhttps://github.com/phpstan/phpstan-src/commit/72883c88cc60baa154d0180491fbda8d85104eb6
#6214https://github.com/phpstan/phpstan-src/pull/6214
72883c8https://github.com/phpstan/phpstan-src/commit/72883c88cc60baa154d0180491fbda8d85104eb6
https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7
ondrejmirteshttps://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 PRhttps://github.com/phpstan/phpstan-src/commit/df4aa8e0154522cd362f00cc55d138d9e187fac4
#6214https://github.com/phpstan/phpstan-src/pull/6214
df4aa8ehttps://github.com/phpstan/phpstan-src/commit/df4aa8e0154522cd362f00cc55d138d9e187fac4
https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7
ondrejmirteshttps://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 PRhttps://github.com/phpstan/phpstan-src/commit/508423384234fa08713ce0b4383713bf3786d6d9
#6214https://github.com/phpstan/phpstan-src/pull/6214
5084233https://github.com/phpstan/phpstan-src/commit/508423384234fa08713ce0b4383713bf3786d6d9
https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7
ondrejmirteshttps://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 PRhttps://github.com/phpstan/phpstan-src/commit/f2af40930ef25149b3b93a6e81ad1206ec82ab67
#6214https://github.com/phpstan/phpstan-src/pull/6214
f2af409https://github.com/phpstan/phpstan-src/commit/f2af40930ef25149b3b93a6e81ad1206ec82ab67
https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7
ondrejmirteshttps://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 PRhttps://github.com/phpstan/phpstan-src/commit/859f4c227c7a66b6727a65e2efc801164f9396f4
#6214https://github.com/phpstan/phpstan-src/pull/6214
859f4c2https://github.com/phpstan/phpstan-src/commit/859f4c227c7a66b6727a65e2efc801164f9396f4
https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7
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%2F6214
Please reload this pagehttps://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 pagehttps://github.com/phpstan/phpstan-src/pull/6214
https://github.com/SanderMuller
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.