René's URL Explorer Experiment


Title: Erase generic type arguments when comparing a `class-string` against a constant class-string by phpstan-bot · Pull Request #6485 · phpstan/phpstan-src · GitHub

Open Graph Title: Erase generic type arguments when comparing a `class-string` against a constant class-string by phpstan-bot · Pull Request #6485 · phpstan/phpstan-src

X Title: Erase generic type arguments when comparing a `class-string` against a constant class-string by phpstan-bot · Pull Request #6485 · phpstan/phpstan-src

Description: PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - Erase generic type arguments when comparing a `class-string` against a constant class-string by phpstan-bot · Pull Request #6485 · phpstan/phpstan-src

Open Graph Description: Summary A union of parameterized class-string types was not narrowed after a class name was excluded with !==: class-string<X<int>>|class-string<Y<int>> stayed unchanged ins...

X Description: Summary A union of parameterized class-string types was not narrowed after a class name was excluded with !==: class-string&lt;X&lt;int&gt;&gt;|class-string&lt;Y&lt;int&...

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

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:5df7025d-3847-5542-c34d-d5df37c040fe
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id912C:1F5665:472B98:5F4FBD:6B008DF1
html-safe-nonce0628570049d7ba9c9ac76ad5d2c0be11fe3eb9118be72abf5c4f1cfa77adf898
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTJDOjFGNTY2NTo0NzJCOTg6NUY0RkJEOjZCMDA4REYxIiwidmlzaXRvcl9pZCI6IjgwMjc5OTkxMzc0MTkwMDU0MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac06be2eb643dbdc6eee5e8c930dc96d9b791917a7420ff9cab2900f4153d667be
hovercard-subject-tagpull_request:4584430267
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/6485/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1950cd8e1d8442d1038a70e339420155a33d027d6c61f7d00fbc2a1faf4efa2c/phpstan/phpstan-src/pull/6485
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1950cd8e1d8442d1038a70e339420155a33d027d6c61f7d00fbc2a1faf4efa2c/phpstan/phpstan-src/pull/6485
og:image:altSummary A union of parameterized class-string types was not narrowed after a class name was excluded with !==: class-string<X<int>>|class-string<Y<int>> stayed unchanged ins...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamephpstan-bot
hostnamegithub.com
expected-hostnamegithub.com
Nonec710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08
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
releasebe616a2a6ec1c609d6e002896dff5352d5c5f28b
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpstan/phpstan-src/pull/6485#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6485
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%2F6485
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/6485
Reloadhttps://github.com/phpstan/phpstan-src/pull/6485
Reloadhttps://github.com/phpstan/phpstan-src/pull/6485
phpstanhttps://github.com/phpstan
phpstan-srchttps://github.com/phpstan/phpstan-src
Codehttps://github.com/phpstan/phpstan-src
Pull requests185 (185)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
phpstan-bothttps://github.com/phpstan-bot
phpstan:2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
phpstan-bot:create-pull-request/patch-9n3wj48https://github.com/phpstan-bot/phpstan-src/tree/create-pull-request/patch-9n3wj48
Conversationhttps://github.com/phpstan/phpstan-src/pull/6485
Commits6 (6)https://github.com/phpstan/phpstan-src/pull/6485/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/6485/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/6485/files
Erase generic type arguments when comparing a class-string against a constant class-stringhttps://github.com/phpstan/phpstan-src/pull/6485#top
phpstan-bothttps://github.com/phpstan-bot
phpstan:2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
phpstan-bot:create-pull-request/patch-9n3wj48https://github.com/phpstan-bot/phpstan-src/tree/create-pull-request/patch-9n3wj48
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Sep 20, 2026https://github.com/phpstan/phpstan-src/pull/6485#issue-5518393461
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6485
phpstan/phpstan#15266https://github.com/phpstan/phpstan/issues/15266
phpstan/phpstan#10498https://github.com/phpstan/phpstan/issues/10498
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6485
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Sep 20, 2026 https://github.com/phpstan/phpstan-src/pull/6485#pullrequestreview-5260836155
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6485/files
src/Type/Generic/GenericClassStringType.phphttps://github.com/phpstan/phpstan-src/pull/6485/files#diff-80cac2d18fff1ed19173e902770bb4e2c6e9608abd1a49839b9fd40e2b777c4e
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6485
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Sep 20, 2026 https://github.com/phpstan/phpstan-src/pull/6485#pullrequestreview-5260857958
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6485/files
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Sep 20, 2026https://github.com/phpstan/phpstan-src/pull/6485#event-31483817358
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
staabmhttps://github.com/staabm
September 20, 2026 14:48https://github.com/phpstan/phpstan-src/pull/6485#event-31483819738
https://github.com/staabm
staabmhttps://github.com/staabm
Sep 22, 2026 https://github.com/phpstan/phpstan-src/pull/6485#pullrequestreview-5279966772
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6485/files
staabmhttps://github.com/staabm
https://github.com/phpstan/phpstan-src/pull/6485#pullrequestreview-5279966772
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6485
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Sep 22, 2026 https://github.com/phpstan/phpstan-src/pull/6485#pullrequestreview-5280095082
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6485/files
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/6485#pullrequestreview-5280095082
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
phpstan/phpstan#10498https://github.com/phpstan/phpstan/issues/10498
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6485
tests/PHPStan/Rules/Comparison/data/bug-15266.phphttps://github.com/phpstan/phpstan-src/pull/6485/files#diff-8485944ca7a10b0a1d9cb29cdd5975d4f8faf9f8fe7a36a9388d075e58643928
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6485
phpstan-bothttps://github.com/phpstan-bot
September 22, 2026 18:33https://github.com/phpstan/phpstan-src/pull/6485#commits-pushed-4728624
https://github.com/phpstan-bot
https://github.com/VincentLanglet
Erase generic type arguments when comparing a class-string against …https://github.com/phpstan/phpstan-src/pull/6485/commits/4728624659e38b93c26dc42bbde540dfb2e98dcc
4728624https://github.com/phpstan/phpstan-src/pull/6485/commits/4728624659e38b93c26dc42bbde540dfb2e98dcc
https://github.com/phpstan-bot
https://github.com/claude
https://github.com/VincentLanglet
Inline the single-use type argument erasure into isValueOfGenericTypehttps://github.com/phpstan/phpstan-src/pull/6485/commits/36e6600d79b36de86654504624a6a3f3c329e572
36e6600https://github.com/phpstan/phpstan-src/pull/6485/commits/36e6600d79b36de86654504624a6a3f3c329e572
https://github.com/phpstan-bot
https://github.com/claude
https://github.com/VincentLanglet
Lint the match() reproducer only on PHP 8.0+https://github.com/phpstan/phpstan-src/pull/6485/commits/2b78e04cfa7e02bbe1ec52094c593a96dd0493a1
2b78e04https://github.com/phpstan/phpstan-src/pull/6485/commits/2b78e04cfa7e02bbe1ec52094c593a96dd0493a1
https://github.com/phpstan-bot
https://github.com/claude
https://github.com/VincentLanglet
Added regression test for static::class comparison in a generic classhttps://github.com/phpstan/phpstan-src/pull/6485/commits/4102d836a88a09067925398bf01c33193833f958
4102d83https://github.com/phpstan/phpstan-src/pull/6485/commits/4102d836a88a09067925398bf01c33193833f958
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
force-pushedhttps://github.com/phpstan/phpstan-src/compare/0379b431b737e5866ab4594bb0307a42695b9621..4102d836a88a09067925398bf01c33193833f958
0379b43https://github.com/phpstan/phpstan-src/commit/0379b431b737e5866ab4594bb0307a42695b9621
4102d83https://github.com/phpstan/phpstan-src/commit/4102d836a88a09067925398bf01c33193833f958
Compare https://github.com/phpstan/phpstan-src/compare/0379b431b737e5866ab4594bb0307a42695b9621..4102d836a88a09067925398bf01c33193833f958
September 22, 2026 16:34https://github.com/phpstan/phpstan-src/pull/6485#event-31615432170
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Sep 22, 2026 https://github.com/phpstan/phpstan-src/pull/6485#pullrequestreview-5280991801
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6485/files/4102d836a88a09067925398bf01c33193833f958
VincentLanglethttps://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/6485#pullrequestreview-5280991801
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6485
phpstan-bothttps://github.com/phpstan-bot
September 22, 2026 17:07https://github.com/phpstan/phpstan-src/pull/6485#commits-pushed-740aaeb
https://github.com/phpstan-bot
https://github.com/claude
Mirror the class-string type argument erasure in the native Type classeshttps://github.com/phpstan/phpstan-src/pull/6485/commits/740aaebd5ebddf21e0f07e08d62f8388e8f5d870
740aaebhttps://github.com/phpstan/phpstan-src/pull/6485/commits/740aaebd5ebddf21e0f07e08d62f8388e8f5d870
https://github.com/phpstan-bot
https://github.com/claude
Bump expected turbo versionhttps://github.com/phpstan/phpstan-src/pull/6485/commits/18003c71cd23055e0518483aaec5348bbb8f2e6b
18003c7https://github.com/phpstan/phpstan-src/pull/6485/commits/18003c71cd23055e0518483aaec5348bbb8f2e6b
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Sep 22, 2026https://github.com/phpstan/phpstan-src/pull/6485#issuecomment-5780715933
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6485
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Sep 22, 2026 https://github.com/phpstan/phpstan-src/pull/6485#pullrequestreview-5282471820
View reviewed changes https://github.com/phpstan/phpstan-src/pull/6485/files/18003c71cd23055e0518483aaec5348bbb8f2e6b
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Sep 22, 2026https://github.com/phpstan/phpstan-src/pull/6485#event-31631275608
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
Sep 22, 2026https://github.com/phpstan/phpstan-src/pull/6485#issuecomment-5784056170
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6485
https://github.com/VincentLanglet
VincentLanglethttps://github.com/VincentLanglet
September 22, 2026 20:59https://github.com/phpstan/phpstan-src/pull/6485#event-31631312079
Resolve PHP version checks in src/Type/Php extensions from Scope::getPhpVersion() #6551 https://github.com/phpstan/phpstan-src/pull/6551
Resolve PHP version checks in remaining scope-aware extensions from Scope::getPhpVersion() and forbid injecting PhpVersion into them #6563 https://github.com/phpstan/phpstan-src/pull/6563
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%2F6485
https://github.com/staabm
staabm https://github.com/staabm
https://github.com/phpstan/phpstan-src/pull/6485/files/62ade723fbbefe2b7e28ef611482afd54d3ff5a9
https://github.com/VincentLanglet
VincentLanglet https://github.com/VincentLanglet
https://github.com/phpstan/phpstan-src/pull/6485/files/18003c71cd23055e0518483aaec5348bbb8f2e6b
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6485
https://github.com/VincentLanglet
VincentLanglet https://github.com/VincentLanglet
Parameterized class-string is not narrowed after excluding a final class name https://github.com/phpstan/phpstan/issues/15266
Incorrect "comparison will always evaluate to false" for comparison between static::class and ::class in class with @template https://github.com/phpstan/phpstan/issues/10498
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6485
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.