René's URL Explorer Experiment


Title: Fix phpstan/phpstan#10055: Conditional argument type not properly narrowing type by phpstan-bot · Pull Request #5386 · phpstan/phpstan-src · GitHub

Open Graph Title: Fix phpstan/phpstan#10055: Conditional argument type not properly narrowing type by phpstan-bot · Pull Request #5386 · phpstan/phpstan-src

X Title: Fix phpstan/phpstan#10055: Conditional argument type not properly narrowing type by phpstan-bot · Pull Request #5386 · phpstan/phpstan-src

Description: PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - Fix phpstan/phpstan#10055: Conditional argument type not properly narrowing type by phpstan-bot · Pull Request #5386 · phpstan/phpstan-src

Open Graph Description: Summary Conditional parameter types (@param ($param1 is 'value3' ? bool : int) $param2) fail to narrow correctly when the parameter union type has more than 2 members. The "false"...

X Description: Summary Conditional parameter types (@param ($param1 is 'value3' ? bool : int) $param2) fail to narrow correctly when the parameter union type has more than 2 members. The &quot...

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

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:6d11a57c-502b-94ea-a401-9451b1869771
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9164:395430:819280:AD7FD3:6B00DD0E
html-safe-noncea654b48f98f8721704afeaf116d29dd6bc44cd5b46792b6ad93fd0f7910bd3da
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTY0OjM5NTQzMDo4MTkyODA6QUQ3RkQzOjZCMDBERDBFIiwidmlzaXRvcl9pZCI6IjczMzY5MzIwNzA0OTQ2MjUwMzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2f93ecf4c0dd28f1ff331d13fecdbc52d649d044bd4d31780535625aa2097cf5
hovercard-subject-tagpull_request:3483268866
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/5386/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b1abe27b8dc648a96e5d1c45180c2ba7e79af23c2e28494d1749773f2c039067/phpstan/phpstan-src/pull/5386
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b1abe27b8dc648a96e5d1c45180c2ba7e79af23c2e28494d1749773f2c039067/phpstan/phpstan-src/pull/5386
og:image:altSummary Conditional parameter types (@param ($param1 is 'value3' ? bool : int) $param2) fail to narrow correctly when the parameter union type has more than 2 members. The "false"...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamephpstan-bot
hostnamegithub.com
expected-hostnamegithub.com
None043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf
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
release5425dc24e8bd8d6fca9641a12afc984825a43875
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpstan/phpstan-src/pull/5386#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F5386
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%2F5386
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/5386
Reloadhttps://github.com/phpstan/phpstan-src/pull/5386
Reloadhttps://github.com/phpstan/phpstan-src/pull/5386
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
staabmhttps://github.com/staabm
phpstan:2.1.xhttps://github.com/phpstan/phpstan-src/tree/2.1.x
phpstan-bot:create-pull-request/patch-6ci6gslhttps://github.com/phpstan-bot/phpstan-src/tree/create-pull-request/patch-6ci6gsl
Conversationhttps://github.com/phpstan/phpstan-src/pull/5386
Commits18 (18)https://github.com/phpstan/phpstan-src/pull/5386/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/5386/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/5386/files
Fix phpstan/phpstan#10055: Conditional argument type not properly narrowing typehttps://github.com/phpstan/phpstan-src/pull/5386#top
staabmhttps://github.com/staabm
phpstan:2.1.xhttps://github.com/phpstan/phpstan-src/tree/2.1.x
phpstan-bot:create-pull-request/patch-6ci6gslhttps://github.com/phpstan-bot/phpstan-src/tree/create-pull-request/patch-6ci6gsl
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 2, 2026https://github.com/phpstan/phpstan-src/pull/5386#issue-4195872390
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
phpstan/phpstan#10055https://github.com/phpstan/phpstan/issues/10055
phpstan/phpstan#13591https://github.com/phpstan/phpstan/issues/13591
phpstan/phpstan#12597https://github.com/phpstan/phpstan/issues/12597
phpstan/phpstan#10422https://github.com/phpstan/phpstan/issues/10422
phpstan/phpstan#6663https://github.com/phpstan/phpstan/issues/6663
phpstan/phpstan#4090https://github.com/phpstan/phpstan/issues/4090
phpstan/phpstan#11218https://github.com/phpstan/phpstan/issues/11218
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 4, 2026https://github.com/phpstan/phpstan-src/pull/5386#event-24201075434
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 11, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4093660061
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4093660061
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 11, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4229339241
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 11, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4093689473
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4093689473
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 11, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4229407342
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
force-pushedhttps://github.com/phpstan/phpstan-src/compare/21b91c0f1a15717edf8c0b2780dde0cf6f65017b..6f358cdbd0c03e3f4eb44f42f04648e6d2291077
21b91c0https://github.com/phpstan/phpstan-src/commit/21b91c0f1a15717edf8c0b2780dde0cf6f65017b
6f358cdhttps://github.com/phpstan/phpstan-src/commit/6f358cdbd0c03e3f4eb44f42f04648e6d2291077
Compare https://github.com/phpstan/phpstan-src/compare/21b91c0f1a15717edf8c0b2780dde0cf6f65017b..6f358cdbd0c03e3f4eb44f42f04648e6d2291077
April 11, 2026 15:31https://github.com/phpstan/phpstan-src/pull/5386#event-24409207168
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 11, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4093919160
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4093919160
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 11, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4229711581
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 11, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4093955261
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4093955261
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 11, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4229771814
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 11, 2026 https://github.com/phpstan/phpstan-src/pull/5386#ref-pullrequest-4245936675
Fix non regression test #5444 https://github.com/phpstan/phpstan-src/pull/5444
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 11, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4094336256
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4094336256
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 11, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4230376714
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 12, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4094360695
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4094360695
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 12, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4230411206
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 12, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4094743745
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4094743745
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 12, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4230992399
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 12, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4094757953
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4094757953
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 12, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4231035246
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 12, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4094796398
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4094796398
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 12, 2026 https://github.com/phpstan/phpstan-src/pull/5386#ref-pullrequest-4246980270
Remove wrong specification #5445 https://github.com/phpstan/phpstan-src/pull/5445
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 12, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4231140845
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
force-pushedhttps://github.com/phpstan/phpstan-src/compare/7935f44a48c590191bca73f9a74174005419aa22..816fdb7e59fb8c65010cc0b1081ec49d59b990d0
7935f44https://github.com/phpstan/phpstan-src/commit/7935f44a48c590191bca73f9a74174005419aa22
816fdb7https://github.com/phpstan/phpstan-src/commit/816fdb7e59fb8c65010cc0b1081ec49d59b990d0
Compare https://github.com/phpstan/phpstan-src/compare/7935f44a48c590191bca73f9a74174005419aa22..816fdb7e59fb8c65010cc0b1081ec49d59b990d0
April 12, 2026 17:43https://github.com/phpstan/phpstan-src/pull/5386#event-24423784216
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 12, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4095455371
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4095455371
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
phpstan/phpstan#13591https://github.com/phpstan/phpstan/issues/13591
phpstan/phpstan#12597https://github.com/phpstan/phpstan/issues/12597
phpstan/phpstan#10422https://github.com/phpstan/phpstan/issues/10422
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 12, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4232267255
phpstan/phpstan#13591https://github.com/phpstan/phpstan/issues/13591
Nicer Markdown #1https://github.com/phpstan/phpstan-src/pull/1
phpstan/phpstan#12597https://github.com/phpstan/phpstan/issues/12597
phpstan/phpstan#10422https://github.com/phpstan/phpstan/issues/10422
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 12, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4095493390
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4095493390
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
phpstan/phpstan#6663https://github.com/phpstan/phpstan/issues/6663
phpstan/phpstan#4090https://github.com/phpstan/phpstan/issues/4090
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 12, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4232362975
#6663https://github.com/phpstan/phpstan-src/pull/6663
#4090https://github.com/phpstan/phpstan-src/pull/4090
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 12, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4095546283
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4095546283
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
phpstan/phpstan#11218https://github.com/phpstan/phpstan/issues/11218
https://phpstan.org/r/6ff7bf65-fcdc-4a07-8596-3cbee65338behttps://phpstan.org/r/6ff7bf65-fcdc-4a07-8596-3cbee65338be
https://phpstan.org/r/b6a3c5fc-a4d2-4525-915e-f392b32e5193https://phpstan.org/r/b6a3c5fc-a4d2-4525-915e-f392b32e5193
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
phpstan-bothttps://github.com/phpstan-bot
April 13, 2026 08:44https://github.com/phpstan/phpstan-src/pull/5386#commits-pushed-9c66e81
https://github.com/phpstan-bot
https://github.com/claude
https://github.com/staabm
Remove UnionType guard from Pass 2 condition matchinghttps://github.com/phpstan/phpstan-src/pull/5386/commits/9c66e81d0c79ccd89e3ddc4179041726d2a580e7
9c66e81https://github.com/phpstan/phpstan-src/pull/5386/commits/9c66e81d0c79ccd89e3ddc4179041726d2a580e7
https://github.com/VincentLanglet
https://github.com/staabm
Fix linthttps://github.com/phpstan/phpstan-src/pull/5386/commits/996ff3d154cdcd02915ee3fcedbb5456a829ce6e
996ff3dhttps://github.com/phpstan/phpstan-src/pull/5386/commits/996ff3d154cdcd02915ee3fcedbb5456a829ce6e
https://github.com/phpstan-bot
https://github.com/claude
https://github.com/staabm
Add non-regression tests for #13591, #12597, and #10422https://github.com/phpstan/phpstan-src/pull/5386/commits/6d27242b0d84bc627ee0e1f7a29bf965d835184d
6d27242https://github.com/phpstan/phpstan-src/pull/5386/commits/6d27242b0d84bc627ee0e1f7a29bf965d835184d
https://github.com/phpstan-bot
https://github.com/claude
https://github.com/staabm
Merge rule test data files into nsrt files for #10422 and #13591https://github.com/phpstan/phpstan-src/pull/5386/commits/34176518e7d24d59ba84764d030ff1c987bcda47
3417651https://github.com/phpstan/phpstan-src/pull/5386/commits/34176518e7d24d59ba84764d030ff1c987bcda47
https://github.com/phpstan-bot
https://github.com/claude
https://github.com/staabm
Add non-regression tests forhttps://github.com/phpstan/phpstan-src/pull/5386/commits/0fb28c754e1e3571484c39d8eec08f0300a8e333
phpstan#6663https://github.com/phpstan/phpstan-src/pull/6663
andhttps://github.com/phpstan/phpstan-src/pull/5386/commits/0fb28c754e1e3571484c39d8eec08f0300a8e333
phpstan#4090https://github.com/phpstan/phpstan-src/pull/4090
0fb28c7https://github.com/phpstan/phpstan-src/pull/5386/commits/0fb28c754e1e3571484c39d8eec08f0300a8e333
phpstan#6663https://github.com/phpstan/phpstan-src/pull/6663
phpstan#4090https://github.com/phpstan/phpstan-src/pull/4090
https://github.com/phpstan-bot
https://github.com/claude
https://github.com/staabm
Add non-regression tests for #11218https://github.com/phpstan/phpstan-src/pull/5386/commits/4636a61cb16eecb4a2bb24a2607150fe1379085d
4636a61https://github.com/phpstan/phpstan-src/pull/5386/commits/4636a61cb16eecb4a2bb24a2607150fe1379085d
https://github.com/VincentLanglet
https://github.com/staabm
Fixhttps://github.com/phpstan/phpstan-src/pull/5386/commits/3a5557ba3a4f96647aa766b77ddf07725070f52e
3a5557bhttps://github.com/phpstan/phpstan-src/pull/5386/commits/3a5557ba3a4f96647aa766b77ddf07725070f52e
https://github.com/staabm
more readablehttps://github.com/phpstan/phpstan-src/pull/5386/commits/af79cb58647339ddb1426309eb317997465dcf1b
af79cb5https://github.com/phpstan/phpstan-src/pull/5386/commits/af79cb58647339ddb1426309eb317997465dcf1b
https://github.com/staabm
staabmhttps://github.com/staabm
force-pushedhttps://github.com/phpstan/phpstan-src/compare/756007b7a5c518c5b357af8f1ca6a501603bbae4..af79cb58647339ddb1426309eb317997465dcf1b
756007bhttps://github.com/phpstan/phpstan-src/commit/756007b7a5c518c5b357af8f1ca6a501603bbae4
af79cb5https://github.com/phpstan/phpstan-src/commit/af79cb58647339ddb1426309eb317997465dcf1b
Compare https://github.com/phpstan/phpstan-src/compare/756007b7a5c518c5b357af8f1ca6a501603bbae4..af79cb58647339ddb1426309eb317997465dcf1b
April 13, 2026 06:45https://github.com/phpstan/phpstan-src/pull/5386#event-24434822690
staabmhttps://github.com/staabm
April 13, 2026 08:50https://github.com/phpstan/phpstan-src/pull/5386#commits-pushed-f9e6e1f
https://github.com/staabm
cshttps://github.com/phpstan/phpstan-src/pull/5386/commits/f9e6e1f22e658ea5b4f67a59dacc65c4e0322972
f9e6e1fhttps://github.com/phpstan/phpstan-src/pull/5386/commits/f9e6e1f22e658ea5b4f67a59dacc65c4e0322972
https://github.com/staabm
more readablehttps://github.com/phpstan/phpstan-src/pull/5386/commits/df3ed28347ae41d41f47f01a86b377cb0eb7d46a
df3ed28https://github.com/phpstan/phpstan-src/pull/5386/commits/df3ed28347ae41d41f47f01a86b377cb0eb7d46a
https://github.com/staabm
staabmhttps://github.com/staabm
Apr 13, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4097018695
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files/af79cb58647339ddb1426309eb317997465dcf1b
src/Analyser/MutatingScope.phphttps://github.com/phpstan/phpstan-src/pull/5386/files/af79cb58647339ddb1426309eb317997465dcf1b#diff-dc817f2bab8672057a95375a542e68599164f6ab2380e4cccd1b50583e295d85
staabmhttps://github.com/staabm
Apr 13, 2026https://github.com/phpstan/phpstan-src/pull/5386#discussion_r3071443365
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
phpstan-bothttps://github.com/phpstan-bot
Apr 13, 2026https://github.com/phpstan/phpstan-src/pull/5386#discussion_r3071469306
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
VincentLanglethttps://github.com/VincentLanglet
Apr 13, 2026https://github.com/phpstan/phpstan-src/pull/5386#discussion_r3071673879
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
phpstan-bothttps://github.com/phpstan-bot
Apr 13, 2026https://github.com/phpstan/phpstan-src/pull/5386#discussion_r3071695970
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
phpstan-bothttps://github.com/phpstan-bot
April 13, 2026 07:31https://github.com/phpstan/phpstan-src/pull/5386#commits-pushed-aa1f96e
https://github.com/phpstan-bot
https://github.com/claude
Add comments explaining the two-pass condition matching in filterBySp…https://github.com/phpstan/phpstan-src/pull/5386/commits/aa1f96e56c4ff21a28f9f06e3a7c010a04f4e344
aa1f96ehttps://github.com/phpstan/phpstan-src/pull/5386/commits/aa1f96e56c4ff21a28f9f06e3a7c010a04f4e344
https://github.com/phpstan-bot
https://github.com/claude
Clarify comments: two-pass matching is about preferring exact matches…https://github.com/phpstan/phpstan-src/pull/5386/commits/219e791a0103a91a390aa685422a7dd641f8791a
219e791https://github.com/phpstan/phpstan-src/pull/5386/commits/219e791a0103a91a390aa685422a7dd641f8791a
https://github.com/staabm
staabmhttps://github.com/staabm
Apr 13, 2026 https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4097457026
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5386/files/219e791a0103a91a390aa685422a7dd641f8791a
staabmhttps://github.com/staabm
https://github.com/phpstan/phpstan-src/pull/5386#pullrequestreview-4097457026
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Apr 13, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4235091726
@staabmhttps://github.com/staabm
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/staabm
Update MutatingScope.phphttps://github.com/phpstan/phpstan-src/pull/5386/commits/ffd567d3c8c88c32e058a034326052e68ffce7fe
ffd567dhttps://github.com/phpstan/phpstan-src/pull/5386/commits/ffd567d3c8c88c32e058a034326052e68ffce7fe
https://github.com/staabm
staabmhttps://github.com/staabm
Apr 13, 2026https://github.com/phpstan/phpstan-src/pull/5386#event-24439386283
https://github.com/staabm
staabmhttps://github.com/staabm
52704a4https://github.com/phpstan/phpstan-src/commit/52704a43f7a543fc95e3fbb417f60f73020cc100
Apr 13, 2026https://github.com/phpstan/phpstan-src/pull/5386#event-24439386817
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/staabm
staabmhttps://github.com/staabm
April 13, 2026 09:09https://github.com/phpstan/phpstan-src/pull/5386#event-24439387963
Conditional argument type not properly narrowing type (for constant string unions?) phpstan/phpstan#10055 https://github.com/phpstan/phpstan/issues/10055
Conditional else can cause inferred type to change phpstan/phpstan#10422 https://github.com/phpstan/phpstan/issues/10422
For loop - Variable might not be defined even if it is defined phpstan/phpstan#11218 https://github.com/phpstan/phpstan/issues/11218
'Variable might not be undefined' in if-statement after in_array check. phpstan/phpstan#12597 https://github.com/phpstan/phpstan/issues/12597
False positive: Type narrowing not working with conditional exception validation phpstan/phpstan#13591 https://github.com/phpstan/phpstan/issues/13591
Array detected as empty while it cannot phpstan/phpstan#4090 https://github.com/phpstan/phpstan/issues/4090
conclude a type in a nested IF phpstan/phpstan#6663 https://github.com/phpstan/phpstan/issues/6663
https://github.com/staabm
staabmhttps://github.com/staabm
Apr 13, 2026https://github.com/phpstan/phpstan-src/pull/5386#issuecomment-4235213154
@VincentLanglethttps://github.com/VincentLanglet
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Apr 13, 2026 https://github.com/phpstan/phpstan-src/pull/5386#ref-issue-4254365532
Regression: never defined variable phpstan/phpstan#14458 https://github.com/phpstan/phpstan/issues/14458
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Apr 13, 2026 https://github.com/phpstan/phpstan-src/pull/5386#ref-pullrequest-4254499724
Fix phpstan/phpstan#14458: Regression: never defined variable #5451 https://github.com/phpstan/phpstan-src/pull/5451
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%2F5386
https://github.com/VincentLanglet
VincentLanglet https://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5386/files/af79cb58647339ddb1426309eb317997465dcf1b
https://github.com/staabm
staabm https://github.com/staabm
https://github.com/phpstan/phpstan-src/pull/5386/files/219e791a0103a91a390aa685422a7dd641f8791a
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/VincentLanglet
VincentLanglet https://github.com/VincentLanglet
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5386
https://github.com/phpstan-bot
https://github.com/VincentLanglet
https://github.com/staabm
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.