René's URL Explorer Experiment


Title: Preserve constant array shape when spreading a union of constant arrays in array literals by phpstan-bot · Pull Request #5774 · phpstan/phpstan-src · GitHub

Open Graph Title: Preserve constant array shape when spreading a union of constant arrays in array literals by phpstan-bot · Pull Request #5774 · phpstan/phpstan-src

X Title: Preserve constant array shape when spreading a union of constant arrays in array literals by phpstan-bot · Pull Request #5774 · phpstan/phpstan-src

Description: PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - Preserve constant array shape when spreading a union of constant arrays in array literals by phpstan-bot · Pull Request #5774 · phpstan/phpstan-src

Open Graph Description: 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...

X Description: 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 r...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:80e6885b-a2d2-a4bd-dbb3-099a189eba2d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8DDA:24270E:112C7BB:17B4D30:6AFA43F3
html-safe-nonce7b6401e3311b3f632d62e5f8f1f7f527943fa267059476e293b3f6a7f8d87bca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RERBOjI0MjcwRToxMTJDN0JCOjE3QjREMzA6NkFGQTQzRjMiLCJ2aXNpdG9yX2lkIjoiMjc0MTY1Mzc2MzQ0MDM5NTI1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac604a218209d83c28ae0071ab5735433cdcb2a22cb85ad09ee2866e4f4d0f2db0
hovercard-subject-tagpull_request:3754107238
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/5774/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c39c3d94e19d3cea8ae7eb1fa1253f2ef246ba6944bfe21ffd5223ec32753673/phpstan/phpstan-src/pull/5774
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c39c3d94e19d3cea8ae7eb1fa1253f2ef246ba6944bfe21ffd5223ec32753673/phpstan/phpstan-src/pull/5774
og:image:altSummary 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamephpstan-bot
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
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
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpstan/phpstan-src/pull/5774#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F5774
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%2F5774
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/5774
Reloadhttps://github.com/phpstan/phpstan-src/pull/5774
Reloadhttps://github.com/phpstan/phpstan-src/pull/5774
phpstanhttps://github.com/phpstan
phpstan-srchttps://github.com/phpstan/phpstan-src
Codehttps://github.com/phpstan/phpstan-src
Pull requests176 (176)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/pulse
https://github.com/phpstan/phpstan-src
staabmhttps://github.com/staabm
phpstan:2.2.xhttps://github.com/phpstan/phpstan-src/tree/2.2.x
phpstan-bot:create-pull-request/patch-lhvvfmkhttps://github.com/phpstan-bot/phpstan-src/tree/create-pull-request/patch-lhvvfmk
Conversationhttps://github.com/phpstan/phpstan-src/pull/5774
Commits4 (4)https://github.com/phpstan/phpstan-src/pull/5774/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/5774/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/5774/files
Preserve constant array shape when spreading a union of constant arrays in array literalshttps://github.com/phpstan/phpstan-src/pull/5774#top
staabmhttps://github.com/staabm
phpstan:2.2.xhttps://github.com/phpstan/phpstan-src/tree/2.2.x
phpstan-bot:create-pull-request/patch-lhvvfmkhttps://github.com/phpstan-bot/phpstan-src/tree/create-pull-request/patch-lhvvfmk
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
May 27, 2026https://github.com/phpstan/phpstan-src/pull/5774#issue-4531215498
phpstan/phpstan#14708https://github.com/phpstan/phpstan/issues/14708
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5774
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
force-pushedhttps://github.com/phpstan/phpstan-src/compare/6f5a635c98e4881475ad66af25256ef686d70a2f..8a281e2928b3b6005ddc2cff0cbb36d9fecf2ffc
6f5a635https://github.com/phpstan/phpstan-src/commit/6f5a635c98e4881475ad66af25256ef686d70a2f
8a281e2https://github.com/phpstan/phpstan-src/commit/8a281e2928b3b6005ddc2cff0cbb36d9fecf2ffc
Compare https://github.com/phpstan/phpstan-src/compare/6f5a635c98e4881475ad66af25256ef686d70a2f..8a281e2928b3b6005ddc2cff0cbb36d9fecf2ffc
July 28, 2026 11:27https://github.com/phpstan/phpstan-src/pull/5774#event-28594650550
https://github.com/apps/coderabbitai
coderabbitaihttps://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
857effahttps://github.com/phpstan/phpstan-src/pull/5774/commits/857effa014e578e7f6de5a6eba15d44febd06b92
https://github.com/staabm
staabmhttps://github.com/staabm
force-pushedhttps://github.com/phpstan/phpstan-src/compare/510302ad5e59627e4cfcc561a89b018e60b84024..857effa014e578e7f6de5a6eba15d44febd06b92
510302ahttps://github.com/phpstan/phpstan-src/commit/510302ad5e59627e4cfcc561a89b018e60b84024
857effahttps://github.com/phpstan/phpstan-src/commit/857effa014e578e7f6de5a6eba15d44febd06b92
Compare https://github.com/phpstan/phpstan-src/compare/510302ad5e59627e4cfcc561a89b018e60b84024..857effa014e578e7f6de5a6eba15d44febd06b92
August 10, 2026 16:45https://github.com/phpstan/phpstan-src/pull/5774#event-29235295418
https://github.com/staabm
staabmhttps://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.phphttps://github.com/phpstan/phpstan-src/pull/5774/files/857effa014e578e7f6de5a6eba15d44febd06b92#diff-8d885bc4dfb9409d1cb955106331fee860d010cd9d7d4a0872793e50eae2277c
staabmhttps://github.com/staabm
Aug 10, 2026https://github.com/phpstan/phpstan-src/pull/5774#discussion_r3751651061
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5774
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5774
phpstan-bothttps://github.com/phpstan-bot
Aug 10, 2026https://github.com/phpstan/phpstan-src/pull/5774#discussion_r3751718589
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5774
https://github.com/staabm
staabmhttps://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
staabmhttps://github.com/staabm
https://github.com/phpstan/phpstan-src/pull/5774#pullrequestreview-4899192961
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5774
phpstan-bothttps://github.com/phpstan-bot
August 10, 2026 17:12https://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 keyshttps://github.com/phpstan/phpstan-src/pull/5774/commits/760b9658477154077300e90b518da46fc81ecc43
760b965https://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 TrinaryLogichttps://github.com/phpstan/phpstan-src/pull/5774/commits/eae0576e39f9fb1c04b254a7a9bf889393ecd936
eae0576https://github.com/phpstan/phpstan-src/pull/5774/commits/eae0576e39f9fb1c04b254a7a9bf889393ecd936
https://github.com/phpstan-bot
phpstan-bothttps://github.com/phpstan-bot
Aug 10, 2026https://github.com/phpstan/phpstan-src/pull/5774#issuecomment-5243569864
Please reload this pagehttps://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
254362dhttps://github.com/phpstan/phpstan-src/pull/5774/commits/254362d14d26ac6486d33b679adf052fddabff19
eae0576https://github.com/phpstan-bot/phpstan-src/commit/eae0576e39f9fb1c04b254a7a9bf889393ecd936
https://github.com/staabm
staabmhttps://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
staabmhttps://github.com/staabm
369bfdfhttps://github.com/phpstan/phpstan-src/commit/369bfdfaaa6456c74ce7a3b17f5d33ce87ff836b
Aug 11, 2026https://github.com/phpstan/phpstan-src/pull/5774#event-29260662818
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/5774
https://github.com/staabm
staabmhttps://github.com/staabm
August 11, 2026 05:06https://github.com/phpstan/phpstan-src/pull/5774#event-29260663595
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%2F5774
https://github.com/staabm
staabm https://github.com/staabm
https://github.com/phpstan/phpstan-src/pull/5774/files/254362d14d26ac6486d33b679adf052fddabff19
Please reload this pagehttps://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 pagehttps://github.com/phpstan/phpstan-src/pull/5774
https://github.com/phpstan-bot
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.