| 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:ba8aa593-f3ea-095c-6ffa-df77e1a46a7d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DAB8:4B3F5:3DFC5C:56CE11:6B006FC5 |
| html-safe-nonce | 1fea271137c3451e3d927f5d36c273e57302d5eaa20f5665e0cc16532ac33f34 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUI4OjRCM0Y1OjNERkM1Qzo1NkNFMTE6NkIwMDZGQzUiLCJ2aXNpdG9yX2lkIjoiNDgyNjEzOTM1MDgzNDExNDUwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ab8785f41e4b1b8289a1a6f05f7a6cc1ab4e3f6553eedc473d3b63109503ba08 |
| hovercard-subject-tag | pull_request:3980353318 |
| 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/5977/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/bafdcd1e645ea25e9d0569d47aa0d299e62fbd99e6dc149b3f1c654435e66f6f/phpstan/phpstan-src/pull/5977 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bafdcd1e645ea25e9d0569d47aa0d299e62fbd99e6dc149b3f1c654435e66f6f/phpstan/phpstan-src/pull/5977 |
| og:image:alt | Closes phpstan/phpstan#6970
Root cause
Since PHP 8.0, using an array or an object as an array (or string) offset throws TypeError instead of emitting an "Illegal offset type" warning (Rec... |
| 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/5977#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F5977 |
| 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%2F5977 |
| 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/5977 |
| Reload | https://github.com/phpstan/phpstan-src/pull/5977 |
| Reload | https://github.com/phpstan/phpstan-src/pull/5977 |
| 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:typeerror-array-key-throw-points | https://github.com/gnutix/phpstan-src/tree/typeerror-array-key-throw-points |
| Conversation | https://github.com/phpstan/phpstan-src/pull/5977 |
| Commits1 (1) | https://github.com/phpstan/phpstan-src/pull/5977/commits |
| Checks | https://github.com/phpstan/phpstan-src/pull/5977/checks |
| Files changed | https://github.com/phpstan/phpstan-src/pull/5977/files |
| Model TypeError throw points for illegal array key offsets | https://github.com/phpstan/phpstan-src/pull/5977#top |
| gnutix | https://github.com/gnutix |
| phpstan:2.3.x | https://github.com/phpstan/phpstan-src/tree/2.3.x |
| gnutix:typeerror-array-key-throw-points | https://github.com/gnutix/phpstan-src/tree/typeerror-array-key-throw-points |
|
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| Jul 2, 2026 | https://github.com/phpstan/phpstan-src/pull/5977#issue-4796878494 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5977 |
| phpstan/phpstan#6970 | https://github.com/phpstan/phpstan/issues/6970 |
| Reclassifying engine warnings RFC | https://wiki.php.net/rfc/engine_warnings |
| phpstan/phpstan#9146 | https://github.com/phpstan/phpstan/issues/9146 |
| #4981 | https://github.com/phpstan/phpstan-src/pull/4981 |
| 88b41d4 | https://github.com/phpstan/phpstan-src/commit/88b41d43cebfd1d839e0ff671378973319b95a7e |
| engine warnings RFC | https://wiki.php.net/rfc/engine_warnings |
| PHP 8.0 UPGRADING notes | https://github.com/php/php-src/blob/PHP-8.0/UPGRADING |
| phpstan/phpstan#15470 | https://github.com/phpstan/phpstan/pull/15470 |
| Claude Code | https://claude.com/claude-code |
| https://claude.ai/code/session_01QW8VaDtn3cMdQowPSh1xGG | https://claude.ai/code/session_01QW8VaDtn3cMdQowPSh1xGG |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5977 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| July 4, 2026 19:47 | https://github.com/phpstan/phpstan-src/pull/5977#event-27562304863 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/b0e63167b265bb0a6a6fa43a7ed9cd66d8900a8b..5f483b58c99807535f96c58ff07df0f3ed2b921b |
| b0e6316 | https://github.com/phpstan/phpstan-src/commit/b0e63167b265bb0a6a6fa43a7ed9cd66d8900a8b |
| 5f483b5 | https://github.com/phpstan/phpstan-src/commit/5f483b58c99807535f96c58ff07df0f3ed2b921b |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/b0e63167b265bb0a6a6fa43a7ed9cd66d8900a8b..5f483b58c99807535f96c58ff07df0f3ed2b921b |
| July 5, 2026 07:49 | https://github.com/phpstan/phpstan-src/pull/5977#event-27569965432 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
|
Jul 5, 2026
| https://github.com/phpstan/phpstan-src/pull/5977#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/ab4e62d310944c61245b0753c110631fef9f3cbc..897a3d3140cdcb566aea011c18e2f8490c7f094c |
| ab4e62d | https://github.com/phpstan/phpstan-src/commit/ab4e62d310944c61245b0753c110631fef9f3cbc |
| 897a3d3 | https://github.com/phpstan/phpstan-src/commit/897a3d3140cdcb566aea011c18e2f8490c7f094c |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/ab4e62d310944c61245b0753c110631fef9f3cbc..897a3d3140cdcb566aea011c18e2f8490c7f094c |
| July 5, 2026 11:39 | https://github.com/phpstan/phpstan-src/pull/5977#event-27572653638 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/897a3d3140cdcb566aea011c18e2f8490c7f094c..c19e5b393a6317aabfb203296d6cacfd910cfb5c |
| 897a3d3 | https://github.com/phpstan/phpstan-src/commit/897a3d3140cdcb566aea011c18e2f8490c7f094c |
| c19e5b3 | https://github.com/phpstan/phpstan-src/commit/c19e5b393a6317aabfb203296d6cacfd910cfb5c |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/897a3d3140cdcb566aea011c18e2f8490c7f094c..c19e5b393a6317aabfb203296d6cacfd910cfb5c |
| October 12, 2026 16:32 | https://github.com/phpstan/phpstan-src/pull/5977#event-33064211432 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| October 12, 2026 16:32 | https://github.com/phpstan/phpstan-src/pull/5977#event-33064214507 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/c19e5b393a6317aabfb203296d6cacfd910cfb5c..8d336a5888f3fc499168142b4e94aec32deb3d04 |
| c19e5b3 | https://github.com/phpstan/phpstan-src/commit/c19e5b393a6317aabfb203296d6cacfd910cfb5c |
| 8d336a5 | https://github.com/phpstan/phpstan-src/commit/8d336a5888f3fc499168142b4e94aec32deb3d04 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/c19e5b393a6317aabfb203296d6cacfd910cfb5c..8d336a5888f3fc499168142b4e94aec32deb3d04 |
| October 12, 2026 19:27 | https://github.com/phpstan/phpstan-src/pull/5977#event-33075146554 |
| gnutix | https://github.com/gnutix |
|
Oct 12, 2026
| https://github.com/phpstan/phpstan-src/pull/5977#ref-commit-f3868f7 |
|
| https://github.com/gnutix |
|
| https://github.com/claude |
| Baseline the shopware throws.void error from illegal array offsets | https://github.com/gnutix/phpstan/commit/f3868f7e83f94fafabbb607161c5178f958b39ea |
| f3868f7 | https://github.com/gnutix/phpstan/commit/f3868f7e83f94fafabbb607161c5178f958b39ea |
| phpstan/phpstan-src#5977 | https://github.com/phpstan/phpstan-src/pull/5977 |
| @throws | https://github.com/throws |
| https://claude.ai/code/session_01QW8VaDtn3cMdQowPSh1xGG | https://claude.ai/code/session_01QW8VaDtn3cMdQowPSh1xGG |
|
Baseline the shopware throws.void error from illegal array offsets
phpstan/phpstan#15470
| https://github.com/phpstan/phpstan/pull/15470 |
|
Accept all data provider arguments in OverridingMethodRuleTest::testBug3403()
#6737
| https://github.com/phpstan/phpstan-src/pull/6737 |
|
| https://github.com/gnutix |
|
| https://github.com/claude |
|
| https://github.com/ondrejmirtes |
| Model TypeError throw points for illegal array key offsets | https://github.com/phpstan/phpstan-src/pull/5977/commits/5500b084fb8d9439479fe8d689ac3c25ffe134f7 |
| 5500b08 | https://github.com/phpstan/phpstan-src/pull/5977/commits/5500b084fb8d9439479fe8d689ac3c25ffe134f7 |
| https://claude.ai/code/session_01QW8VaDtn3cMdQowPSh1xGG | https://claude.ai/code/session_01QW8VaDtn3cMdQowPSh1xGG |
| https://ampcode.com/threads/T-01a19219-3b71-70b4-9e7a-3291211fe45f | https://ampcode.com/threads/T-01a19219-3b71-70b4-9e7a-3291211fe45f |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/8d336a5888f3fc499168142b4e94aec32deb3d04..5500b084fb8d9439479fe8d689ac3c25ffe134f7 |
| 8d336a5 | https://github.com/phpstan/phpstan-src/commit/8d336a5888f3fc499168142b4e94aec32deb3d04 |
| 5500b08 | https://github.com/phpstan/phpstan-src/commit/5500b084fb8d9439479fe8d689ac3c25ffe134f7 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/8d336a5888f3fc499168142b4e94aec32deb3d04..5500b084fb8d9439479fe8d689ac3c25ffe134f7 |
| October 31, 2026 13:48 | https://github.com/phpstan/phpstan-src/pull/5977#event-34774324537 |
| 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%2F5977 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5977 |
|
Accessing an array's value using a Generator's key (which can be another type than "array-key") could potentially trigger a TypeError
| https://github.com/phpstan/phpstan/issues/6970 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5977 |
|
| https://github.com/gnutix |
|
| 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 |