| 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:d0a4c538-671c-1aa2-4b2a-9c189bf61330 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E8FA:54428:43BB63:5CAE76:6B006FC4 |
| html-safe-nonce | e2e324f11df697a5d61f5c75a3c2a6d7ed56edb8e91b873340824496c2b8ebe2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEZBOjU0NDI4OjQzQkI2Mzo1Q0FFNzY6NkIwMDZGQzQiLCJ2aXNpdG9yX2lkIjoiMzc3MzI1NjY3MTE2MjI5ODMwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8ac08436d1c4618d3260d0dbfff3877fd9dca495faef2747acfe8bbe4389ada1 |
| hovercard-subject-tag | pull_request:3980507110 |
| 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/5980/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/40475148d8a6bcdc10bf618797252620c1eaef196b685cc85f90b3aa9d125399/phpstan/phpstan-src/pull/5980 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/40475148d8a6bcdc10bf618797252620c1eaef196b685cc85f90b3aa9d125399/phpstan/phpstan-src/pull/5980 |
| og:image:alt | Follow-up to #5976 (same root-cause family). ClassConstantRule had a legacy string bail-out that predates Type::isClassString() / Type::getClassStringObjectType(): for a $classString::CONST fetch w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gnutix |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| 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 | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| 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/5980#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F5980 |
| 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%2F5980 |
| 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/5980 |
| Reload | https://github.com/phpstan/phpstan-src/pull/5980 |
| Reload | https://github.com/phpstan/phpstan-src/pull/5980 |
| phpstan | https://github.com/phpstan |
| phpstan-src | https://github.com/phpstan/phpstan-src |
| Code | https://github.com/phpstan/phpstan-src |
| Pull requests185 (185) | 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 |
| gnutix | https://github.com/gnutix |
| phpstan:2.3.x | https://github.com/phpstan/phpstan-src/tree/2.3.x |
| gnutix:class-constant-string-unions | https://github.com/gnutix/phpstan-src/tree/class-constant-string-unions |
| Conversation | https://github.com/phpstan/phpstan-src/pull/5980 |
| Commits2 (2) | https://github.com/phpstan/phpstan-src/pull/5980/commits |
| Checks | https://github.com/phpstan/phpstan-src/pull/5980/checks |
| Files changed | https://github.com/phpstan/phpstan-src/pull/5980/files |
| Check class constant access through constant class-name strings and class-string unions | https://github.com/phpstan/phpstan-src/pull/5980#top |
| gnutix | https://github.com/gnutix |
| phpstan:2.3.x | https://github.com/phpstan/phpstan-src/tree/2.3.x |
| gnutix:class-constant-string-unions | https://github.com/gnutix/phpstan-src/tree/class-constant-string-unions |
|
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| Jul 2, 2026 | https://github.com/phpstan/phpstan-src/pull/5980#issue-4797054319 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5980 |
| #5976 | https://github.com/phpstan/phpstan-src/pull/5976 |
| #5976 | https://github.com/phpstan/phpstan-src/pull/5976 |
| #5976 | https://github.com/phpstan/phpstan-src/pull/5976 |
| phpstan/phpstan#15472 | https://github.com/phpstan/phpstan/pull/15472 |
| #5976 | https://github.com/phpstan/phpstan-src/pull/5976 |
| phpstan/phpstan#15477 | https://github.com/phpstan/phpstan/pull/15477 |
| Claude Code | https://claude.com/claude-code |
| phpstan/phpstan#12387 | https://github.com/phpstan/phpstan/issues/12387 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5980 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| July 4, 2026 20:01 | https://github.com/phpstan/phpstan-src/pull/5980#event-27562476366 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/2a3ef96c6083a9fbd0c7e3a3f8b0e68dc2ed09a0..a4ab8f80587cb2ede7252f597fb67d676fb2efe4 |
| 2a3ef96 | https://github.com/phpstan/phpstan-src/commit/2a3ef96c6083a9fbd0c7e3a3f8b0e68dc2ed09a0 |
| a4ab8f8 | https://github.com/phpstan/phpstan-src/commit/a4ab8f80587cb2ede7252f597fb67d676fb2efe4 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/2a3ef96c6083a9fbd0c7e3a3f8b0e68dc2ed09a0..a4ab8f80587cb2ede7252f597fb67d676fb2efe4 |
| July 5, 2026 07:49 | https://github.com/phpstan/phpstan-src/pull/5980#event-27569966269 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
|
Jul 5, 2026
| https://github.com/phpstan/phpstan-src/pull/5980#ref-pullrequest-4796763647 |
|
Do not flatten template benevolent unions in TypeCombinator::union()
#5975
| https://github.com/phpstan/phpstan-src/pull/5975 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/6faefb425fff359728ca2565adb3285e808fec68..59de55c0b2491d4f239466ed378c1d718893594e |
| 6faefb4 | https://github.com/phpstan/phpstan-src/commit/6faefb425fff359728ca2565adb3285e808fec68 |
| 59de55c | https://github.com/phpstan/phpstan-src/commit/59de55c0b2491d4f239466ed378c1d718893594e |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/6faefb425fff359728ca2565adb3285e808fec68..59de55c0b2491d4f239466ed378c1d718893594e |
| July 5, 2026 11:40 | https://github.com/phpstan/phpstan-src/pull/5980#event-27572662555 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/59de55c0b2491d4f239466ed378c1d718893594e..47b83ee3b012c816592df6823eba22f3ce3ab4dd |
| 59de55c | https://github.com/phpstan/phpstan-src/commit/59de55c0b2491d4f239466ed378c1d718893594e |
| 47b83ee | https://github.com/phpstan/phpstan-src/commit/47b83ee3b012c816592df6823eba22f3ce3ab4dd |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/59de55c0b2491d4f239466ed378c1d718893594e..47b83ee3b012c816592df6823eba22f3ce3ab4dd |
| October 12, 2026 16:32 | https://github.com/phpstan/phpstan-src/pull/5980#event-33064224660 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| October 12, 2026 16:32 | https://github.com/phpstan/phpstan-src/pull/5980#event-33064227030 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
|
Oct 12, 2026
| https://github.com/phpstan/phpstan-src/pull/5980#ref-pullrequest-4796824622 |
|
Check static method calls through constant class-name strings and class-string unions
#5976
| https://github.com/phpstan/phpstan-src/pull/5976 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/47b83ee3b012c816592df6823eba22f3ce3ab4dd..53f4c75b4444d9f66a96f6ad58d2e7290bb00089 |
| 47b83ee | https://github.com/phpstan/phpstan-src/commit/47b83ee3b012c816592df6823eba22f3ce3ab4dd |
| 53f4c75 | https://github.com/phpstan/phpstan-src/commit/53f4c75b4444d9f66a96f6ad58d2e7290bb00089 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/47b83ee3b012c816592df6823eba22f3ce3ab4dd..53f4c75b4444d9f66a96f6ad58d2e7290bb00089 |
| October 12, 2026 18:33 | https://github.com/phpstan/phpstan-src/pull/5980#event-33071733132 |
| gnutix | https://github.com/gnutix |
|
Oct 12, 2026
| https://github.com/phpstan/phpstan-src/pull/5980#ref-commit-0e8421e |
|
| https://github.com/gnutix |
|
| https://github.com/claude |
| Baseline the shopware classConstant.notFound error on a class-string<… | https://github.com/gnutix/phpstan/commit/0e8421e3b717d6d13ffbf8fac1e3b6acf8093b48 |
| 0e8421e | https://github.com/gnutix/phpstan/commit/0e8421e3b717d6d13ffbf8fac1e3b6acf8093b48 |
| phpstan/phpstan-src#5980 | https://github.com/phpstan/phpstan-src/pull/5980 |
| https://claude.ai/code/session_01QW8VaDtn3cMdQowPSh1xGG | https://claude.ai/code/session_01QW8VaDtn3cMdQowPSh1xGG |
|
Baseline the shopware classConstant.notFound error on a class-string
phpstan/phpstan#15472
| https://github.com/phpstan/phpstan/pull/15472 |
|
Accept all data provider arguments in OverridingMethodRuleTest::testBug3403()
#6737
| https://github.com/phpstan/phpstan-src/pull/6737 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/53f4c75b4444d9f66a96f6ad58d2e7290bb00089..dbdc8d20924eafc23ab43f320aaf3d4610923515 |
| 53f4c75 | https://github.com/phpstan/phpstan-src/commit/53f4c75b4444d9f66a96f6ad58d2e7290bb00089 |
| dbdc8d2 | https://github.com/phpstan/phpstan-src/commit/dbdc8d20924eafc23ab43f320aaf3d4610923515 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/53f4c75b4444d9f66a96f6ad58d2e7290bb00089..dbdc8d20924eafc23ab43f320aaf3d4610923515 |
| October 12, 2026 20:27 | https://github.com/phpstan/phpstan-src/pull/5980#event-33078718340 |
| gnutix | https://github.com/gnutix |
|
Oct 13, 2026
| https://github.com/phpstan/phpstan-src/pull/5980#ref-commit-62a6388 |
|
| https://github.com/gnutix |
|
| https://github.com/claude |
| Baseline the shopware InterfaceHook::FUNCTIONS access through a class… | https://github.com/gnutix/phpstan/commit/62a63885584236e517e373b77e6bb506122abe63 |
| 62a6388 | https://github.com/gnutix/phpstan/commit/62a63885584236e517e373b77e6bb506122abe63 |
| phpstan/phpstan-src#5980 | https://github.com/phpstan/phpstan-src/pull/5980 |
| https://claude.ai/code/session_01QW8VaDtn3cMdQowPSh1xGG | https://claude.ai/code/session_01QW8VaDtn3cMdQowPSh1xGG |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
|
Oct 13, 2026
| https://github.com/phpstan/phpstan-src/pull/5980#ref-pullrequest-5834060881 |
|
Baseline the shopware InterfaceHook::FUNCTIONS access through a class-string
phpstan/phpstan#15477
| https://github.com/phpstan/phpstan/pull/15477 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/dbdc8d20924eafc23ab43f320aaf3d4610923515..b1e9c87597e3b8a230fa6e609d0724b780ca6faa |
| dbdc8d2 | https://github.com/phpstan/phpstan-src/commit/dbdc8d20924eafc23ab43f320aaf3d4610923515 |
| b1e9c87 | https://github.com/phpstan/phpstan-src/commit/b1e9c87597e3b8a230fa6e609d0724b780ca6faa |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/dbdc8d20924eafc23ab43f320aaf3d4610923515..b1e9c87597e3b8a230fa6e609d0724b780ca6faa |
| October 31, 2026 13:28 | https://github.com/phpstan/phpstan-src/pull/5980#event-34773398492 |
|
| https://github.com/gnutix |
|
| https://github.com/claude |
|
| https://github.com/ondrejmirtes |
| Check class constant access through constant class-name strings and c… | https://github.com/phpstan/phpstan-src/pull/5980/commits/dcce8d026931b5468e1a729fccf29c25ce8532d8 |
| dcce8d0 | https://github.com/phpstan/phpstan-src/pull/5980/commits/dcce8d026931b5468e1a729fccf29c25ce8532d8 |
| https://ampcode.com/threads/T-01a19219-4d78-7363-95de-11322f00b310 | https://ampcode.com/threads/T-01a19219-4d78-7363-95de-11322f00b310 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/b1e9c87597e3b8a230fa6e609d0724b780ca6faa..dcce8d026931b5468e1a729fccf29c25ce8532d8 |
| b1e9c87 | https://github.com/phpstan/phpstan-src/commit/b1e9c87597e3b8a230fa6e609d0724b780ca6faa |
| dcce8d0 | https://github.com/phpstan/phpstan-src/commit/dcce8d026931b5468e1a729fccf29c25ce8532d8 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/b1e9c87597e3b8a230fa6e609d0724b780ca6faa..dcce8d026931b5468e1a729fccf29c25ce8532d8 |
| October 31, 2026 13:57 | https://github.com/phpstan/phpstan-src/pull/5980#event-34774710564 |
|
| https://github.com/ondrejmirtes |
| Add regression test for #12387 | https://github.com/phpstan/phpstan-src/pull/5980/commits/ec7d005a60d791a631eaba91111e0195d23d814c |
| ec7d005 | https://github.com/phpstan/phpstan-src/pull/5980/commits/ec7d005a60d791a631eaba91111e0195d23d814c |
| phpstan/phpstan#12387 | https://github.com/phpstan/phpstan/issues/12387 |
| https://ampcode.com/threads/T-01a19219-4d78-7363-95de-11322f00b310 | https://ampcode.com/threads/T-01a19219-4d78-7363-95de-11322f00b310 |
| 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%2F5980 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5980 |
|
No error about accessing protected const from outside class through template class-string
| https://github.com/phpstan/phpstan/issues/12387 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5980 |
|
| https://github.com/gnutix |
|
| 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 |