| 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:e91fbd1f-da93-a294-1ea6-8a1fa597436d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BFE6:D1C6A:71D298:984FB3:6B00AED2 |
| html-safe-nonce | b48b318ff95b3f5bb8bef1bb637763839d29b95686754aac50d5fedca2e99d72 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkU2OkQxQzZBOjcxRDI5ODo5ODRGQjM6NkIwMEFFRDIiLCJ2aXNpdG9yX2lkIjoiNTI4MDc1NDMyNDc4NjQyNTU1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1d63f27d0338ac0ec5094ed741a0fb4c3a7d02af173a5913f7bf135630726db0 |
| hovercard-subject-tag | pull_request:2991223194 |
| 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/4536/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/e66d02183028666c881cf41f4f951ce0448d3ada96fca9fb9ad86e9d9d2ab75f/phpstan/phpstan-src/pull/4536 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e66d02183028666c881cf41f4f951ce0448d3ada96fca9fb9ad86e9d9d2ab75f/phpstan/phpstan-src/pull/4536 |
| og:image:alt | closes phpstan/phpstan#13546 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | staabm |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0dd5f5d6f515a591019ecd66df2c4eab3379c2d3b0777568a90d8c7ae10b79e |
| 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 | 729d8cda69b3d267995675dfbf89ff27ccf61bf6 |
| 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/4536#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F4536 |
| 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%2F4536 |
| 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/4536 |
| Reload | https://github.com/phpstan/phpstan-src/pull/4536 |
| Reload | https://github.com/phpstan/phpstan-src/pull/4536 |
| 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 |
| staabm | https://github.com/staabm |
| phpstan:2.1.x | https://github.com/phpstan/phpstan-src/tree/2.1.x |
| staabm:Bug13546 | https://github.com/staabm/phpstan-src/tree/Bug13546 |
| Conversation | https://github.com/phpstan/phpstan-src/pull/4536 |
| Commits8 (8) | https://github.com/phpstan/phpstan-src/pull/4536/commits |
| Checks | https://github.com/phpstan/phpstan-src/pull/4536/checks |
| Files changed | https://github.com/phpstan/phpstan-src/pull/4536/files |
| Infer non-empty-array after array_key_first/last() | https://github.com/phpstan/phpstan-src/pull/4536#top |
| staabm | https://github.com/staabm |
| phpstan:2.1.x | https://github.com/phpstan/phpstan-src/tree/2.1.x |
| staabm:Bug13546 | https://github.com/staabm/phpstan-src/tree/Bug13546 |
|
| https://github.com/staabm |
| staabm | https://github.com/staabm |
| Nov 8, 2025 | https://github.com/phpstan/phpstan-src/pull/4536#issue-3603306376 |
| phpstan/phpstan#13546 | https://github.com/phpstan/phpstan/issues/13546 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
| November 8, 2025 10:10 | https://github.com/phpstan/phpstan-src/pull/4536#event-20806539815 |
| https://github.com/phpstan-bot |
| phpstan-bot | https://github.com/phpstan-bot |
| Nov 8, 2025 | https://github.com/phpstan/phpstan-src/pull/4536#issuecomment-3506369426 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
| https://github.com/SplotyCode |
| SplotyCode | https://github.com/SplotyCode |
|
Nov 8, 2025
| https://github.com/phpstan/phpstan-src/pull/4536#pullrequestreview-3438357363 |
|
View reviewed changes
| https://github.com/phpstan/phpstan-src/pull/4536/files |
| src/Analyser/TypeSpecifier.php | https://github.com/phpstan/phpstan-src/pull/4536/files#diff-1076e38598f300a69c9dc998dae31374052f95bd69d0d71c11e9d0a4c188976d |
| SplotyCode | https://github.com/SplotyCode |
| Nov 8, 2025 | https://github.com/phpstan/phpstan-src/pull/4536#discussion_r2506925816 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://phpstan.org/r/3459cc41-b3a9-4f63-9e69-23b7ed76cf3d | https://phpstan.org/r/3459cc41-b3a9-4f63-9e69-23b7ed76cf3d |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
| staabm | https://github.com/staabm |
| Nov 8, 2025 | https://github.com/phpstan/phpstan-src/pull/4536#discussion_r2506954987 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
| staabm | https://github.com/staabm |
| Feb 10, 2026 | https://github.com/phpstan/phpstan-src/pull/4536#discussion_r2786313577 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| phpstan/phpstan#14081 | https://github.com/phpstan/phpstan/issues/14081 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/50d062692226338bd81fe91ffe25ffbc776f57c1..885233d2b427a88ae6a85a689968a4ed639e1f22 |
| 50d0626 | https://github.com/phpstan/phpstan-src/commit/50d062692226338bd81fe91ffe25ffbc776f57c1 |
| 885233d | https://github.com/phpstan/phpstan-src/commit/885233d2b427a88ae6a85a689968a4ed639e1f22 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/50d062692226338bd81fe91ffe25ffbc776f57c1..885233d2b427a88ae6a85a689968a4ed639e1f22 |
| November 13, 2025 21:04 | https://github.com/phpstan/phpstan-src/pull/4536#event-20927226206 |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/bd15a288346072fa55f62570ad4accb28d0663a4..d909a102be10053c55cecd310c3cd45c3d5ef2a2 |
| bd15a28 | https://github.com/phpstan/phpstan-src/commit/bd15a288346072fa55f62570ad4accb28d0663a4 |
| d909a10 | https://github.com/phpstan/phpstan-src/commit/d909a102be10053c55cecd310c3cd45c3d5ef2a2 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/bd15a288346072fa55f62570ad4accb28d0663a4..d909a102be10053c55cecd310c3cd45c3d5ef2a2 |
| January 27, 2026 09:15 | https://github.com/phpstan/phpstan-src/pull/4536#event-22311640550 |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/d909a102be10053c55cecd310c3cd45c3d5ef2a2..1e9dc76ffecfdbc46c74341307482e3162758b41 |
| d909a10 | https://github.com/phpstan/phpstan-src/commit/d909a102be10053c55cecd310c3cd45c3d5ef2a2 |
| 1e9dc76 | https://github.com/phpstan/phpstan-src/commit/1e9dc76ffecfdbc46c74341307482e3162758b41 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/d909a102be10053c55cecd310c3cd45c3d5ef2a2..1e9dc76ffecfdbc46c74341307482e3162758b41 |
| February 8, 2026 19:11 | https://github.com/phpstan/phpstan-src/pull/4536#event-22626307172 |
| https://github.com/VincentLanglet |
| VincentLanglet | https://github.com/VincentLanglet |
|
Feb 9, 2026
| https://github.com/phpstan/phpstan-src/pull/4536#pullrequestreview-3775429637 |
|
View reviewed changes
| https://github.com/phpstan/phpstan-src/pull/4536/files |
| src/Analyser/TypeSpecifier.php | https://github.com/phpstan/phpstan-src/pull/4536/files#diff-1076e38598f300a69c9dc998dae31374052f95bd69d0d71c11e9d0a4c188976d |
| VincentLanglet | https://github.com/VincentLanglet |
| Feb 9, 2026 | https://github.com/phpstan/phpstan-src/pull/4536#discussion_r2784589323 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
| staabm | https://github.com/staabm |
| Feb 10, 2026 | https://github.com/phpstan/phpstan-src/pull/4536#discussion_r2786033570 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| phpstan-src/src/Analyser/TypeSpecifier.php | https://github.com/phpstan/phpstan-src/blob/eb4e247282a61eaa0b15f8139264e09c183622d8/src/Analyser/TypeSpecifier.php#L2258-L2269 |
| eb4e247 | https://github.com/phpstan/phpstan-src/commit/eb4e247282a61eaa0b15f8139264e09c183622d8 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
| src/Analyser/TypeSpecifier.php | https://github.com/phpstan/phpstan-src/pull/4536/files#diff-1076e38598f300a69c9dc998dae31374052f95bd69d0d71c11e9d0a4c188976d |
| VincentLanglet | https://github.com/VincentLanglet |
| Feb 9, 2026 | https://github.com/phpstan/phpstan-src/pull/4536#discussion_r2784595331 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
| staabm | https://github.com/staabm |
| Feb 10, 2026 | https://github.com/phpstan/phpstan-src/pull/4536#discussion_r2786057296 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
| staabm | https://github.com/staabm |
| February 10, 2026 07:26 | https://github.com/phpstan/phpstan-src/pull/4536#commits-pushed-0ea52a0 |
|
| https://github.com/staabm |
| Infer non-empty-array after array_key_first/last() | https://github.com/phpstan/phpstan-src/pull/4536/commits/0ea52a0eff6cf2c0f3b376e4800a56d5ef110e6b |
| 0ea52a0 | https://github.com/phpstan/phpstan-src/pull/4536/commits/0ea52a0eff6cf2c0f3b376e4800a56d5ef110e6b |
|
| https://github.com/staabm |
| Update bug-13546.php | https://github.com/phpstan/phpstan-src/pull/4536/commits/d1aece6a5acb21373fd174c4c2769d4d1746339f |
| d1aece6 | https://github.com/phpstan/phpstan-src/pull/4536/commits/d1aece6a5acb21373fd174c4c2769d4d1746339f |
|
| https://github.com/staabm |
| add test | https://github.com/phpstan/phpstan-src/pull/4536/commits/37ea055f46f871454d008d7f37c9b9a6a82ebc52 |
| 37ea055 | https://github.com/phpstan/phpstan-src/pull/4536/commits/37ea055f46f871454d008d7f37c9b9a6a82ebc52 |
|
| https://github.com/staabm |
| test maybe null | https://github.com/phpstan/phpstan-src/pull/4536/commits/2505ba44b8f00fe725da5f71935f6e83dcb1381f |
| 2505ba4 | https://github.com/phpstan/phpstan-src/pull/4536/commits/2505ba44b8f00fe725da5f71935f6e83dcb1381f |
|
| https://github.com/staabm |
| fix php 7.4 compat | https://github.com/phpstan/phpstan-src/pull/4536/commits/1427f89df27e00d7b95f34780a637a0f5b3c985c |
| 1427f89 | https://github.com/phpstan/phpstan-src/pull/4536/commits/1427f89df27e00d7b95f34780a637a0f5b3c985c |
|
| https://github.com/staabm |
| Update bug-13546.php | https://github.com/phpstan/phpstan-src/pull/4536/commits/7d4c4dcad48f0dd1a56968eedc7fe28b00a184aa |
| 7d4c4dc | https://github.com/phpstan/phpstan-src/pull/4536/commits/7d4c4dcad48f0dd1a56968eedc7fe28b00a184aa |
|
| https://github.com/staabm |
| add test | https://github.com/phpstan/phpstan-src/pull/4536/commits/c8f2b3b6d689e4af6d50543529f0b406c5f76b96 |
| c8f2b3b | https://github.com/phpstan/phpstan-src/pull/4536/commits/c8f2b3b6d689e4af6d50543529f0b406c5f76b96 |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/1e9dc76ffecfdbc46c74341307482e3162758b41..c8f2b3b6d689e4af6d50543529f0b406c5f76b96 |
| 1e9dc76 | https://github.com/phpstan/phpstan-src/commit/1e9dc76ffecfdbc46c74341307482e3162758b41 |
| c8f2b3b | https://github.com/phpstan/phpstan-src/commit/c8f2b3b6d689e4af6d50543529f0b406c5f76b96 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/1e9dc76ffecfdbc46c74341307482e3162758b41..c8f2b3b6d689e4af6d50543529f0b406c5f76b96 |
| February 10, 2026 06:29 | https://github.com/phpstan/phpstan-src/pull/4536#event-22663975863 |
|
| https://github.com/staabm |
| Update TypeSpecifier.php | https://github.com/phpstan/phpstan-src/pull/4536/commits/3532071f2c3ccd4c371538a504bde6056d1a63ff |
| 3532071 | https://github.com/phpstan/phpstan-src/pull/4536/commits/3532071f2c3ccd4c371538a504bde6056d1a63ff |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
| 48301e6 | https://github.com/phpstan/phpstan-src/commit/48301e6788e7ad7df20a45a66af885fa9c0c6126 |
| Feb 10, 2026 | https://github.com/phpstan/phpstan-src/pull/4536#event-22664326508 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
| February 10, 2026 06:47 | https://github.com/phpstan/phpstan-src/pull/4536#event-22664327586 |
| 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%2F4536 |
|
| https://github.com/VincentLanglet |
|
VincentLanglet
| https://github.com/VincentLanglet |
|
| https://github.com/phpstan/phpstan-src/pull/4536/files/1e9dc76ffecfdbc46c74341307482e3162758b41 |
|
| https://github.com/SplotyCode |
|
SplotyCode
| https://github.com/SplotyCode |
|
| https://github.com/phpstan/phpstan-src/pull/4536/files/e4b9e606574d6af38432f42c37bb48d7ae8fa4b9 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
|
False positive with array_key_first and reportPossiblyNonexistentGeneralArrayOffset
| https://github.com/phpstan/phpstan/issues/13546 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/4536 |
|
| https://github.com/staabm |
|
| https://github.com/phpstan-bot |
|
| https://github.com/VincentLanglet |
|
| https://github.com/SplotyCode |
|
| 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 |