| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:80e6885b-a2d2-a4bd-dbb3-099a189eba2d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8DDA:24270E:112C7BB:17B4D30:6AFA43F3 |
| html-safe-nonce | 7b6401e3311b3f632d62e5f8f1f7f527943fa267059476e293b3f6a7f8d87bca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RERBOjI0MjcwRToxMTJDN0JCOjE3QjREMzA6NkFGQTQzRjMiLCJ2aXNpdG9yX2lkIjoiMjc0MTY1Mzc2MzQ0MDM5NTI1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 604a218209d83c28ae0071ab5735433cdcb2a22cb85ad09ee2866e4f4d0f2db0 |
| hovercard-subject-tag | pull_request:3754107238 |
| 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/5774/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/c39c3d94e19d3cea8ae7eb1fa1253f2ef246ba6944bfe21ffd5223ec32753673/phpstan/phpstan-src/pull/5774 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c39c3d94e19d3cea8ae7eb1fa1253f2ef246ba6944bfe21ffd5223ec32753673/phpstan/phpstan-src/pull/5774 |
| og:image:alt | Summary
When using the spread operator in array literals with a value that is a union of constant arrays (e.g. ...($flag ? ['key' => true] : [])), PHPStan was degrading the result to a g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | phpstan-bot |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| 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 | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| 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/5774#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F5774 |
| 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%2F5774 |
| 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/5774 |
| Reload | https://github.com/phpstan/phpstan-src/pull/5774 |
| Reload | https://github.com/phpstan/phpstan-src/pull/5774 |
| phpstan | https://github.com/phpstan |
| phpstan-src | https://github.com/phpstan/phpstan-src |
| Code | https://github.com/phpstan/phpstan-src |
| Pull requests176 (176) | 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/pulse |
| https://github.com/phpstan/phpstan-src |
| staabm | https://github.com/staabm |
| phpstan:2.2.x | https://github.com/phpstan/phpstan-src/tree/2.2.x |
| phpstan-bot:create-pull-request/patch-lhvvfmk | https://github.com/phpstan-bot/phpstan-src/tree/create-pull-request/patch-lhvvfmk |
| Conversation | https://github.com/phpstan/phpstan-src/pull/5774 |
| Commits4 (4) | https://github.com/phpstan/phpstan-src/pull/5774/commits |
| Checks | https://github.com/phpstan/phpstan-src/pull/5774/checks |
| Files changed | https://github.com/phpstan/phpstan-src/pull/5774/files |
| Preserve constant array shape when spreading a union of constant arrays in array literals | https://github.com/phpstan/phpstan-src/pull/5774#top |
| staabm | https://github.com/staabm |
| phpstan:2.2.x | https://github.com/phpstan/phpstan-src/tree/2.2.x |
| phpstan-bot:create-pull-request/patch-lhvvfmk | https://github.com/phpstan-bot/phpstan-src/tree/create-pull-request/patch-lhvvfmk |
|
| https://github.com/phpstan-bot |
| phpstan-bot | https://github.com/phpstan-bot |
| May 27, 2026 | https://github.com/phpstan/phpstan-src/pull/5774#issue-4531215498 |
| phpstan/phpstan#14708 | https://github.com/phpstan/phpstan/issues/14708 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5774 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/6f5a635c98e4881475ad66af25256ef686d70a2f..8a281e2928b3b6005ddc2cff0cbb36d9fecf2ffc |
| 6f5a635 | https://github.com/phpstan/phpstan-src/commit/6f5a635c98e4881475ad66af25256ef686d70a2f |
| 8a281e2 | https://github.com/phpstan/phpstan-src/commit/8a281e2928b3b6005ddc2cff0cbb36d9fecf2ffc |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/6f5a635c98e4881475ad66af25256ef686d70a2f..8a281e2928b3b6005ddc2cff0cbb36d9fecf2ffc |
| July 28, 2026 11:27 | https://github.com/phpstan/phpstan-src/pull/5774#event-28594650550 |
| https://github.com/apps/coderabbitai |
| coderabbitai | https://github.com/apps/coderabbitai |
|
Aug 4, 2026
| https://github.com/phpstan/phpstan-src/pull/5774#ref-pullrequest-5062200129 |
|
PHPStan: Resolve GlobalConfig dynamically in WPCliGetConfigDynamicReturnTypeExtension
wp-cli/wp-cli-tests#347
| https://github.com/wp-cli/wp-cli-tests/pull/347 |
|
| https://github.com/phpstan-bot |
|
| https://github.com/staabm |
| Preserve constant array shape when spreading a union of constant arra… | https://github.com/phpstan/phpstan-src/pull/5774/commits/857effa014e578e7f6de5a6eba15d44febd06b92 |
| 857effa | https://github.com/phpstan/phpstan-src/pull/5774/commits/857effa014e578e7f6de5a6eba15d44febd06b92 |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/510302ad5e59627e4cfcc561a89b018e60b84024..857effa014e578e7f6de5a6eba15d44febd06b92 |
| 510302a | https://github.com/phpstan/phpstan-src/commit/510302ad5e59627e4cfcc561a89b018e60b84024 |
| 857effa | https://github.com/phpstan/phpstan-src/commit/857effa014e578e7f6de5a6eba15d44febd06b92 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/510302ad5e59627e4cfcc561a89b018e60b84024..857effa014e578e7f6de5a6eba15d44febd06b92 |
| August 10, 2026 16:45 | https://github.com/phpstan/phpstan-src/pull/5774#event-29235295418 |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
|
Aug 10, 2026
| https://github.com/phpstan/phpstan-src/pull/5774#pullrequestreview-4899182656 |
|
View reviewed changes
| https://github.com/phpstan/phpstan-src/pull/5774/files/857effa014e578e7f6de5a6eba15d44febd06b92 |
| src/Reflection/InitializerExprTypeResolver.php | https://github.com/phpstan/phpstan-src/pull/5774/files/857effa014e578e7f6de5a6eba15d44febd06b92#diff-8d885bc4dfb9409d1cb955106331fee860d010cd9d7d4a0872793e50eae2277c |
| staabm | https://github.com/staabm |
| Aug 10, 2026 | https://github.com/phpstan/phpstan-src/pull/5774#discussion_r3751651061 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5774 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5774 |
| phpstan-bot | https://github.com/phpstan-bot |
| Aug 10, 2026 | https://github.com/phpstan/phpstan-src/pull/5774#discussion_r3751718589 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5774 |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
|
Aug 10, 2026
| https://github.com/phpstan/phpstan-src/pull/5774#pullrequestreview-4899192961 |
|
View reviewed changes
| https://github.com/phpstan/phpstan-src/pull/5774/files/857effa014e578e7f6de5a6eba15d44febd06b92 |
| staabm | https://github.com/staabm |
| https://github.com/phpstan/phpstan-src/pull/5774#pullrequestreview-4899192961 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5774 |
| phpstan-bot | https://github.com/phpstan-bot |
| August 10, 2026 17:12 | https://github.com/phpstan/phpstan-src/pull/5774#commits-pushed-760b965 |
|
| https://github.com/phpstan-bot |
|
| https://github.com/claude |
| Renumber integer keys when unpacking constant arrays with string keys | https://github.com/phpstan/phpstan-src/pull/5774/commits/760b9658477154077300e90b518da46fc81ecc43 |
| 760b965 | https://github.com/phpstan/phpstan-src/pull/5774/commits/760b9658477154077300e90b518da46fc81ecc43 |
|
| https://github.com/phpstan-bot |
|
| https://github.com/claude |
| Decide spread key kind on the key value, not on TrinaryLogic | https://github.com/phpstan/phpstan-src/pull/5774/commits/eae0576e39f9fb1c04b254a7a9bf889393ecd936 |
| eae0576 | https://github.com/phpstan/phpstan-src/pull/5774/commits/eae0576e39f9fb1c04b254a7a9bf889393ecd936 |
| https://github.com/phpstan-bot |
| phpstan-bot | https://github.com/phpstan-bot |
| Aug 10, 2026 | https://github.com/phpstan/phpstan-src/pull/5774#issuecomment-5243569864 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5774 |
|
| https://github.com/staabm |
| Revert "Decide spread key kind on the key value, not on TrinaryLogic" | https://github.com/phpstan/phpstan-src/pull/5774/commits/254362d14d26ac6486d33b679adf052fddabff19 |
| 254362d | https://github.com/phpstan/phpstan-src/pull/5774/commits/254362d14d26ac6486d33b679adf052fddabff19 |
| eae0576 | https://github.com/phpstan-bot/phpstan-src/commit/eae0576e39f9fb1c04b254a7a9bf889393ecd936 |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
|
Aug 11, 2026
| https://github.com/phpstan/phpstan-src/pull/5774#pullrequestreview-4903078274 |
|
View reviewed changes
| https://github.com/phpstan/phpstan-src/pull/5774/files/254362d14d26ac6486d33b679adf052fddabff19 |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
| 369bfdf | https://github.com/phpstan/phpstan-src/commit/369bfdfaaa6456c74ce7a3b17f5d33ce87ff836b |
| Aug 11, 2026 | https://github.com/phpstan/phpstan-src/pull/5774#event-29260662818 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5774 |
| https://github.com/staabm |
| staabm | https://github.com/staabm |
| August 11, 2026 05:06 | https://github.com/phpstan/phpstan-src/pull/5774#event-29260663595 |
| 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%2F5774 |
|
| https://github.com/staabm |
|
staabm
| https://github.com/staabm |
|
| https://github.com/phpstan/phpstan-src/pull/5774/files/254362d14d26ac6486d33b679adf052fddabff19 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5774 |
|
Types with conditional array shape keys not detected properly with spread operators in array
| https://github.com/phpstan/phpstan/issues/14708 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/5774 |
|
| https://github.com/phpstan-bot |
|
| https://github.com/staabm |
|
| 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 |