René's URL Explorer Experiment


Title: Fix phpstan/phpstan#14411: Incorrect type narrowing with dependent types by phpstan-bot · Pull Request #5373 · phpstan/phpstan-src · GitHub

Open Graph Title: Fix phpstan/phpstan#14411: Incorrect type narrowing with dependent types by phpstan-bot · Pull Request #5373 · phpstan/phpstan-src

X Title: Fix phpstan/phpstan#14411: Incorrect type narrowing with dependent types by phpstan-bot · Pull Request #5373 · 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#14411: Incorrect type narrowing with dependent types by phpstan-bot · Pull Request #5373 · phpstan/phpstan-src

Open Graph Description: Summary PHPStan incorrectly reported Strict comparison using === between mixed and null will always evaluate to false when checking if a variable was null inside a conditional block that tested a d...

X Description: Summary PHPStan incorrectly reported Strict comparison using === between mixed and null will always evaluate to false when checking if a variable was null inside a conditional block that tested a d...

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

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:6947d4fa-8e19-0f8e-4818-448696423959
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8F8E:24FC21:C00413:F8B6EB:6B00ECC5
html-safe-nonced8c658f13b4a9ea838a213da059c6b17d57d6013d82a52a55aef46b48285eb7e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjhFOjI0RkMyMTpDMDA0MTM6RjhCNkVCOjZCMDBFQ0M1IiwidmlzaXRvcl9pZCI6IjMwMDYwMTc2NDE5ODM4MzEyMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac65b64aa2794f63535bcdc5d58c03d06b50c670db1a89ca65debc4fb274bfbe33
hovercard-subject-tagpull_request:3474189640
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/5373/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/86f42368cd646b57bdd1eb24f8a86742b677b460be6823607c2a69d8e5961ca6/phpstan/phpstan-src/pull/5373
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/86f42368cd646b57bdd1eb24f8a86742b677b460be6823607c2a69d8e5961ca6/phpstan/phpstan-src/pull/5373
og:image:altSummary PHPStan incorrectly reported Strict comparison using === between mixed and null will always evaluate to false when checking if a variable was null inside a conditional block that tested a d...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamephpstan-bot
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-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpstan/phpstan-src/pull/5373#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F5373
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%2F5373
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/5373
Reloadhttps://github.com/phpstan/phpstan-src/pull/5373
Reloadhttps://github.com/phpstan/phpstan-src/pull/5373
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
ondrejmirteshttps://github.com/ondrejmirtes
phpstan:2.1.xhttps://github.com/phpstan/phpstan-src/tree/2.1.x
phpstan-bot:create-pull-request/patch-ysei247https://github.com/phpstan-bot/phpstan-src/tree/create-pull-request/patch-ysei247
Conversationhttps://github.com/phpstan/phpstan-src/pull/5373
Commits5 (5)https://github.com/phpstan/phpstan-src/pull/5373/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/5373/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/5373/files
Fix phpstan/phpstan#14411: Incorrect type narrowing with dependent typeshttps://github.com/phpstan/phpstan-src/pull/5373#top
ondrejmirteshttps://github.com/ondrejmirtes
phpstan:2.1.xhttps://github.com/phpstan/phpstan-src/tree/2.1.x
phpstan-bot:create-pull-request/patch-ysei247https://github.com/phpstan-bot/phpstan-src/tree/create-pull-request/patch-ysei247
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Mar 31, 2026https://github.com/phpstan/phpstan-src/pull/5373#issue-4182621356
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
phpstan/phpstan#14411https://github.com/phpstan/phpstan/issues/14411
phpstan/phpstan#11328https://github.com/phpstan/phpstan/issues/11328
phpstan/phpstan#10085https://github.com/phpstan/phpstan/issues/10085
phpstan/phpstan#14211https://github.com/phpstan/phpstan/issues/14211
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
https://github.com/VincentLanglet
https://github.com/phpstan-bot
Fix incorrect type narrowing with dependent types in scope merginghttps://github.com/phpstan/phpstan-src/pull/5373/commits/f6ed6bdc744809c11d5c025c5da541529dc08c3a
f6ed6bdhttps://github.com/phpstan/phpstan-src/pull/5373/commits/f6ed6bdc744809c11d5c025c5da541529dc08c3a
phpstan/phpstan#14411https://github.com/phpstan/phpstan/issues/14411
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Mar 31, 2026 https://github.com/phpstan/phpstan-src/pull/5373#pullrequestreview-4040453493
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5373/files/f6ed6bdc744809c11d5c025c5da541529dc08c3a
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5373#pullrequestreview-4040453493
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#5056https://github.com/phpstan/phpstan-src/pull/5056
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
https://github.com/phpstan-bot
https://github.com/claude
Fix #14411 without reverting PRhttps://github.com/phpstan/phpstan-src/pull/5373/commits/8be11a9ba40edb02e58f75cd7d30b726d213c608
phpstan#5056https://github.com/phpstan/phpstan-src/pull/5056
preserveVacuousConditionalshttps://github.com/phpstan/phpstan-src/pull/5373/commits/8be11a9ba40edb02e58f75cd7d30b726d213c608
8be11a9https://github.com/phpstan/phpstan-src/pull/5373/commits/8be11a9ba40edb02e58f75cd7d30b726d213c608
phpstan#5056https://github.com/phpstan/phpstan-src/pull/5056
phpstan#5056https://github.com/phpstan/phpstan-src/pull/5056
phpstan#4173https://github.com/phpstan/phpstan-src/pull/4173
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Mar 31, 2026https://github.com/phpstan/phpstan-src/pull/5373#issuecomment-4165942827
#5056https://github.com/phpstan/phpstan-src/pull/5056
Fix phpstan/phpstan#4173: Consequest scope with the same condition #5056https://github.com/phpstan/phpstan-src/pull/5056
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Mar 31, 2026 https://github.com/phpstan/phpstan-src/pull/5373#pullrequestreview-4040577056
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5373/files/8be11a9ba40edb02e58f75cd7d30b726d213c608
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5373#pullrequestreview-4040577056
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
https://github.com/phpstan-bot
https://github.com/claude
Fix regression: refine guard overlap check in createConditionalExpres…https://github.com/phpstan/phpstan-src/pull/5373/commits/fb3eed9bcf93d4783b00fd7f2d03697c739d46e6
fb3eed9https://github.com/phpstan/phpstan-src/pull/5373/commits/fb3eed9bcf93d4783b00fd7f2d03697c739d46e6
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Mar 31, 2026https://github.com/phpstan/phpstan-src/pull/5373#issuecomment-4166075140
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Mar 31, 2026 https://github.com/phpstan/phpstan-src/pull/5373#pullrequestreview-4040654092
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5373/files/fb3eed9bcf93d4783b00fd7f2d03697c739d46e6
VincentLanglethttps://github.com/VincentLanglet
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
https://github.com/phpstan/phpstan-src/pull/5373#pullrequestreview-4040654092
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
phpstan/phpstan#11328https://github.com/phpstan/phpstan/issues/11328
phpstan/phpstan#10085https://github.com/phpstan/phpstan/issues/10085
phpstan/phpstan#14211https://github.com/phpstan/phpstan/issues/14211
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
https://github.com/phpstan-bot
https://github.com/claude
Add non-regression tests for #11328, #10085, #14211https://github.com/phpstan/phpstan-src/pull/5373/commits/10c3ec46ab4df567fe95cdeeb95c2beebd322329
10c3ec4https://github.com/phpstan/phpstan-src/pull/5373/commits/10c3ec46ab4df567fe95cdeeb95c2beebd322329
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Mar 31, 2026https://github.com/phpstan/phpstan-src/pull/5373#issuecomment-4166173017
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
https://github.com/VincentLanglet
Fix non regression testhttps://github.com/phpstan/phpstan-src/pull/5373/commits/a439851054433d8bdd2a9989a641bf2417d3f1aa
a439851https://github.com/phpstan/phpstan-src/pull/5373/commits/a439851054433d8bdd2a9989a641bf2417d3f1aa
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Mar 31, 2026https://github.com/phpstan/phpstan-src/pull/5373#issuecomment-4166240414
@ondrejmirteshttps://github.com/ondrejmirtes
phpstan/phpstan#10843https://github.com/phpstan/phpstan/issues/10843
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Mar 31, 2026 https://github.com/phpstan/phpstan-src/pull/5373#pullrequestreview-4040783280
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5373/files/a439851054433d8bdd2a9989a641bf2417d3f1aa
https://github.com/staabm
staabmhttps://github.com/staabm
Apr 1, 2026 https://github.com/phpstan/phpstan-src/pull/5373#pullrequestreview-4041798913
View reviewed changes https://github.com/phpstan/phpstan-src/pull/5373/files/a439851054433d8bdd2a9989a641bf2417d3f1aa
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Apr 1, 2026https://github.com/phpstan/phpstan-src/pull/5373#issuecomment-4167938584
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
4e6a1a8https://github.com/phpstan/phpstan-src/commit/4e6a1a87dad6017072d39e6351aac148da23a9f7
Apr 1, 2026https://github.com/phpstan/phpstan-src/pull/5373#event-24100702313
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
April 1, 2026 06:52https://github.com/phpstan/phpstan-src/pull/5373#event-24100703393
List is wrongly inferred as non empty phpstan/phpstan#10085 https://github.com/phpstan/phpstan/issues/10085
Backed enum-related type assumption wrong phpstan/phpstan#11328 https://github.com/phpstan/phpstan/issues/11328
incorrect type inference with dependent types phpstan/phpstan#14211 https://github.com/phpstan/phpstan/issues/14211
Incorrect type narrowing with dependent types phpstan/phpstan#14411 https://github.com/phpstan/phpstan/issues/14411
phpstan-bothttps://github.com/phpstan-bot
Apr 7, 2026 https://github.com/phpstan/phpstan-src/pull/5373#ref-commit-a2503d7
https://github.com/phpstan-bot
Fixhttps://github.com/phpstan-bot/phpstan-src/commit/a2503d71a05dc7ac6286ec8e6e70e8cb6d4ca991
phpstan/phpstan#14411https://github.com/phpstan/phpstan/issues/14411
: Incorrect type narrowing with dependent ty…https://github.com/phpstan-bot/phpstan-src/commit/a2503d71a05dc7ac6286ec8e6e70e8cb6d4ca991
a2503d7https://github.com/phpstan-bot/phpstan-src/commit/a2503d71a05dc7ac6286ec8e6e70e8cb6d4ca991
phpstan#5373https://github.com/phpstan/phpstan-src/pull/5373
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%2F5373
https://github.com/staabm
staabm https://github.com/staabm
https://github.com/phpstan/phpstan-src/pull/5373/files/a439851054433d8bdd2a9989a641bf2417d3f1aa
https://github.com/VincentLanglet
VincentLanglet https://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/5373/files/a439851054433d8bdd2a9989a641bf2417d3f1aa
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5373
https://github.com/phpstan-bot
https://github.com/VincentLanglet
https://github.com/ondrejmirtes
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.