| 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:d36fd00f-27d8-14c4-704b-270ebce20bb6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EB54:A69D:4B4FDE:696871:6B0073D6 |
| html-safe-nonce | d1df249d8882c77eb4e8a25c82f4f87903e27e6cde09ad5b98c8be621b477d87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjU0OkE2OUQ6NEI0RkRFOjY5Njg3MTo2QjAwNzNENiIsInZpc2l0b3JfaWQiOiIzMjM1OTY2NTg3NTM0MDc4OTM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 47e9d92c3cd776d42f192d8939f241d677b87c8915ab1fc9b882f45d2d5faae1 |
| hovercard-subject-tag | pull_request:5167940831 |
| 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/6957/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/1f7a32d340db27395d6f46b26a9c06093d4b820317dd699ba700ebdac4a59808/phpstan/phpstan-src/pull/6957 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1f7a32d340db27395d6f46b26a9c06093d4b820317dd699ba700ebdac4a59808/phpstan/phpstan-src/pull/6957 |
| og:image:alt | Moves the remaining operator and loose comparison logic out of OperatorTypeHelper and LooseComparisonHelper into polymorphic value sets, and deletes both helpers (and ExponentiateHelper).
Type::to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ondrejmirtes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16 |
| 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 | 84e563eb4b55f8fa102f325f117533cee9e3df4a |
| 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/6957#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6957 |
| 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%2F6957 |
| 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/6957 |
| Reload | https://github.com/phpstan/phpstan-src/pull/6957 |
| Reload | https://github.com/phpstan/phpstan-src/pull/6957 |
| 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 |
| ondrejmirtes | https://github.com/ondrejmirtes |
| 2.3.x | https://github.com/phpstan/phpstan-src/tree/2.3.x |
| loose-comparison-sets | https://github.com/phpstan/phpstan-src/tree/loose-comparison-sets |
| Conversation | https://github.com/phpstan/phpstan-src/pull/6957 |
| Commits15 (15) | https://github.com/phpstan/phpstan-src/pull/6957/commits |
| Checks | https://github.com/phpstan/phpstan-src/pull/6957/checks |
| Files changed | https://github.com/phpstan/phpstan-src/pull/6957/files |
| Compute operators and loose comparison on value sets | https://github.com/phpstan/phpstan-src/pull/6957#top |
| ondrejmirtes | https://github.com/ondrejmirtes |
| 2.3.x | https://github.com/phpstan/phpstan-src/tree/2.3.x |
| loose-comparison-sets | https://github.com/phpstan/phpstan-src/tree/loose-comparison-sets |
|
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| Nov 5, 2026 | https://github.com/phpstan/phpstan-src/pull/6957#issue-6218931735 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6957 |
| phpstan/phpstan#15388 | https://github.com/phpstan/phpstan/issues/15388 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6957 |
| ondrejmirtes | https://github.com/ondrejmirtes |
| November 4, 2026 20:04 | https://github.com/phpstan/phpstan-src/pull/6957#commits-pushed-27c1e33 |
|
| https://github.com/ondrejmirtes |
| Derive the values loosely equal to a scalar from its truthiness, numb… | https://github.com/phpstan/phpstan-src/pull/6957/commits/27c1e33696464e632378943389c1b4f10877d370 |
| 27c1e33 | https://github.com/phpstan/phpstan-src/pull/6957/commits/27c1e33696464e632378943389c1b4f10877d370 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Describe the values a type holds with Type::toValueSet() | https://github.com/phpstan/phpstan-src/pull/6957/commits/f1355594acab9e4749bc01562fa5ffd3650eb022 |
| f135559 | https://github.com/phpstan/phpstan-src/pull/6957/commits/f1355594acab9e4749bc01562fa5ffd3650eb022 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Compute %, intdiv, bitwise operators and negation on NumberSet | https://github.com/phpstan/phpstan-src/pull/6957/commits/1268f37b9838b7d95c8dfd2e4900382ca6fde701 |
| 1268f37 | https://github.com/phpstan/phpstan-src/pull/6957/commits/1268f37b9838b7d95c8dfd2e4900382ca6fde701 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Compute arithmetic and bitwise operators on ValueSet | https://github.com/phpstan/phpstan-src/pull/6957/commits/e7c22f7512c4044ea50ac1c72235944634258e71 |
| e7c22f7 | https://github.com/phpstan/phpstan-src/pull/6957/commits/e7c22f7512c4044ea50ac1c72235944634258e71 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Shadow ValueSet with a native mirror | https://github.com/phpstan/phpstan-src/pull/6957/commits/c19e43d58869667e4eb29ed285687ad66c5b6f9c |
| c19e43d | https://github.com/phpstan/phpstan-src/pull/6957/commits/c19e43d58869667e4eb29ed285687ad66c5b6f9c |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Compute concatenation on StringSet | https://github.com/phpstan/phpstan-src/pull/6957/commits/da7bfa36d14973d0ffc2b311b7bedced5b6ff542 |
| da7bfa3 | https://github.com/phpstan/phpstan-src/pull/6957/commits/da7bfa36d14973d0ffc2b311b7bedced5b6ff542 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Compute the array + operator in OperatorTypeTrait | https://github.com/phpstan/phpstan-src/pull/6957/commits/5966a36e3313409aa9028e8724bd4330f310ef63 |
| 5966a36 | https://github.com/phpstan/phpstan-src/pull/6957/commits/5966a36e3313409aa9028e8724bd4330f310ef63 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Compare scalar values on ValueSet and remove LooseComparisonHelper | https://github.com/phpstan/phpstan-src/pull/6957/commits/f5c1630d2741fa7ff22f7b02577e7042daf6e49d |
| f5c1630 | https://github.com/phpstan/phpstan-src/pull/6957/commits/f5c1630d2741fa7ff22f7b02577e7042daf6e49d |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
|
Nov 5, 2026
| https://github.com/phpstan/phpstan-src/pull/6957#ref-pullrequest-4796949029 |
|
Infer array_reduce() callback parameter types from the initial and array arguments
#5978
| https://github.com/phpstan/phpstan-src/pull/5978 |
| ondrejmirtes | https://github.com/ondrejmirtes |
| November 5, 2026 08:02 | https://github.com/phpstan/phpstan-src/pull/6957#commits-pushed-b7aa52f |
|
| https://github.com/ondrejmirtes |
| Raise the memory limit of self-analysis to 512M | https://github.com/phpstan/phpstan-src/pull/6957/commits/b7aa52fe576fd6f00241377e6390f13cebc734d8 |
| b7aa52f | https://github.com/phpstan/phpstan-src/pull/6957/commits/b7aa52fe576fd6f00241377e6390f13cebc734d8 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Do not use the nullsafe operator and the NAN cast to bool in ValueSet | https://github.com/phpstan/phpstan-src/pull/6957/commits/3743f7b9edb1e16c84b4012ecc40cd8ada154e3e |
| 3743f7b | https://github.com/phpstan/phpstan-src/pull/6957/commits/3743f7b9edb1e16c84b4012ecc40cd8ada154e3e |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Add regression test for a mixed operand of + giving a benevolent union | https://github.com/phpstan/phpstan-src/pull/6957/commits/3a478a247b77197f4d42d8ce22b19b0746cf2a95 |
| 3a478a2 | https://github.com/phpstan/phpstan-src/pull/6957/commits/3a478a247b77197f4d42d8ce22b19b0746cf2a95 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Compile the native value sets with MSVC | https://github.com/phpstan/phpstan-src/pull/6957/commits/e47d1e71c6408964f4e718760ae6a1f26c89594d |
| e47d1e7 | https://github.com/phpstan/phpstan-src/pull/6957/commits/e47d1e71c6408964f4e718760ae6a1f26c89594d |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Fold the acceptance of a float range by a union one member at a time | https://github.com/phpstan/phpstan-src/pull/6957/commits/8ff417f36bc7c9ccff6d8481750970839c9a4a7b |
| 8ff417f | https://github.com/phpstan/phpstan-src/pull/6957/commits/8ff417f36bc7c9ccff6d8481750970839c9a4a7b |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Do not cast NAN to bool in the native ValueSet | https://github.com/phpstan/phpstan-src/pull/6957/commits/cf708c42e719c7afdecd35cf7bc8eb6439f44ee3 |
| cf708c4 | https://github.com/phpstan/phpstan-src/pull/6957/commits/cf708c42e719c7afdecd35cf7bc8eb6439f44ee3 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Concatenate a benevolent union as the members that can be cast to string | https://github.com/phpstan/phpstan-src/pull/6957/commits/f9d9539d1b9f2229504b0f394f3188b850421a66 |
| f9d9539 | https://github.com/phpstan/phpstan-src/pull/6957/commits/f9d9539d1b9f2229504b0f394f3188b850421a66 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| 7a343dd | https://github.com/phpstan/phpstan-src/commit/7a343ddc4f937da094fc2072f2a4c8174ce40bfd |
| Nov 5, 2026 | https://github.com/phpstan/phpstan-src/pull/6957#event-35224141148 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6957 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| November 5, 2026 09:30 | https://github.com/phpstan/phpstan-src/pull/6957#event-35224145227 |
| https://github.com/gnutix |
| gnutix | https://github.com/gnutix |
|
Nov 7, 2026
| https://github.com/phpstan/phpstan-src/pull/6957#ref-pullrequest-6258521365 |
|
Type the array_reduce() carry as a loop variable
#6996
| https://github.com/phpstan/phpstan-src/pull/6996 |
| 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%2F6957 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6957 |
|
2.3.0: array_reduce returning int now returns float|int if part of the result is a function
| https://github.com/phpstan/phpstan/issues/15388 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6957 |
|
| 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 |