René's URL Explorer Experiment


Title: Compute operators and loose comparison on value sets by ondrejmirtes · Pull Request #6957 · phpstan/phpstan-src · GitHub

Open Graph Title: Compute operators and loose comparison on value sets by ondrejmirtes · Pull Request #6957 · phpstan/phpstan-src

X Title: Compute operators and loose comparison on value sets by ondrejmirtes · Pull Request #6957 · phpstan/phpstan-src

Description: PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - Compute operators and loose comparison on value sets by ondrejmirtes · Pull Request #6957 · phpstan/phpstan-src

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

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

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:d36fd00f-27d8-14c4-704b-270ebce20bb6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEB54:A69D:4B4FDE:696871:6B0073D6
html-safe-nonced1df249d8882c77eb4e8a25c82f4f87903e27e6cde09ad5b98c8be621b477d87
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjU0OkE2OUQ6NEI0RkRFOjY5Njg3MTo2QjAwNzNENiIsInZpc2l0b3JfaWQiOiIzMjM1OTY2NTg3NTM0MDc4OTM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac47e9d92c3cd776d42f192d8939f241d677b87c8915ab1fc9b882f45d2d5faae1
hovercard-subject-tagpull_request:5167940831
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/6957/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1f7a32d340db27395d6f46b26a9c06093d4b820317dd699ba700ebdac4a59808/phpstan/phpstan-src/pull/6957
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1f7a32d340db27395d6f46b26a9c06093d4b820317dd699ba700ebdac4a59808/phpstan/phpstan-src/pull/6957
og:image:altMoves 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameondrejmirtes
hostnamegithub.com
expected-hostnamegithub.com
None75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16
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
release84e563eb4b55f8fa102f325f117533cee9e3df4a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpstan/phpstan-src/pull/6957#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6957
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%2F6957
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/6957
Reloadhttps://github.com/phpstan/phpstan-src/pull/6957
Reloadhttps://github.com/phpstan/phpstan-src/pull/6957
phpstanhttps://github.com/phpstan
phpstan-srchttps://github.com/phpstan/phpstan-src
Codehttps://github.com/phpstan/phpstan-src
Pull requests185 (185)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/insights
https://github.com/phpstan/phpstan-src
ondrejmirteshttps://github.com/ondrejmirtes
2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
loose-comparison-setshttps://github.com/phpstan/phpstan-src/tree/loose-comparison-sets
Conversationhttps://github.com/phpstan/phpstan-src/pull/6957
Commits15 (15)https://github.com/phpstan/phpstan-src/pull/6957/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/6957/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/6957/files
Compute operators and loose comparison on value setshttps://github.com/phpstan/phpstan-src/pull/6957#top
ondrejmirteshttps://github.com/ondrejmirtes
2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
loose-comparison-setshttps://github.com/phpstan/phpstan-src/tree/loose-comparison-sets
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Nov 5, 2026https://github.com/phpstan/phpstan-src/pull/6957#issue-6218931735
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6957
phpstan/phpstan#15388https://github.com/phpstan/phpstan/issues/15388
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6957
ondrejmirteshttps://github.com/ondrejmirtes
November 4, 2026 20:04https://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
27c1e33https://github.com/phpstan/phpstan-src/pull/6957/commits/27c1e33696464e632378943389c1b4f10877d370
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://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
f135559https://github.com/phpstan/phpstan-src/pull/6957/commits/f1355594acab9e4749bc01562fa5ffd3650eb022
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Compute %, intdiv, bitwise operators and negation on NumberSethttps://github.com/phpstan/phpstan-src/pull/6957/commits/1268f37b9838b7d95c8dfd2e4900382ca6fde701
1268f37https://github.com/phpstan/phpstan-src/pull/6957/commits/1268f37b9838b7d95c8dfd2e4900382ca6fde701
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Compute arithmetic and bitwise operators on ValueSethttps://github.com/phpstan/phpstan-src/pull/6957/commits/e7c22f7512c4044ea50ac1c72235944634258e71
e7c22f7https://github.com/phpstan/phpstan-src/pull/6957/commits/e7c22f7512c4044ea50ac1c72235944634258e71
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Shadow ValueSet with a native mirrorhttps://github.com/phpstan/phpstan-src/pull/6957/commits/c19e43d58869667e4eb29ed285687ad66c5b6f9c
c19e43dhttps://github.com/phpstan/phpstan-src/pull/6957/commits/c19e43d58869667e4eb29ed285687ad66c5b6f9c
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Compute concatenation on StringSethttps://github.com/phpstan/phpstan-src/pull/6957/commits/da7bfa36d14973d0ffc2b311b7bedced5b6ff542
da7bfa3https://github.com/phpstan/phpstan-src/pull/6957/commits/da7bfa36d14973d0ffc2b311b7bedced5b6ff542
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Compute the array + operator in OperatorTypeTraithttps://github.com/phpstan/phpstan-src/pull/6957/commits/5966a36e3313409aa9028e8724bd4330f310ef63
5966a36https://github.com/phpstan/phpstan-src/pull/6957/commits/5966a36e3313409aa9028e8724bd4330f310ef63
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Compare scalar values on ValueSet and remove LooseComparisonHelperhttps://github.com/phpstan/phpstan-src/pull/6957/commits/f5c1630d2741fa7ff22f7b02577e7042daf6e49d
f5c1630https://github.com/phpstan/phpstan-src/pull/6957/commits/f5c1630d2741fa7ff22f7b02577e7042daf6e49d
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
ondrejmirteshttps://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
ondrejmirteshttps://github.com/ondrejmirtes
November 5, 2026 08:02https://github.com/phpstan/phpstan-src/pull/6957#commits-pushed-b7aa52f
https://github.com/ondrejmirtes
Raise the memory limit of self-analysis to 512Mhttps://github.com/phpstan/phpstan-src/pull/6957/commits/b7aa52fe576fd6f00241377e6390f13cebc734d8
b7aa52fhttps://github.com/phpstan/phpstan-src/pull/6957/commits/b7aa52fe576fd6f00241377e6390f13cebc734d8
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://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 ValueSethttps://github.com/phpstan/phpstan-src/pull/6957/commits/3743f7b9edb1e16c84b4012ecc40cd8ada154e3e
3743f7bhttps://github.com/phpstan/phpstan-src/pull/6957/commits/3743f7b9edb1e16c84b4012ecc40cd8ada154e3e
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Add regression test for a mixed operand of + giving a benevolent unionhttps://github.com/phpstan/phpstan-src/pull/6957/commits/3a478a247b77197f4d42d8ce22b19b0746cf2a95
3a478a2https://github.com/phpstan/phpstan-src/pull/6957/commits/3a478a247b77197f4d42d8ce22b19b0746cf2a95
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Compile the native value sets with MSVChttps://github.com/phpstan/phpstan-src/pull/6957/commits/e47d1e71c6408964f4e718760ae6a1f26c89594d
e47d1e7https://github.com/phpstan/phpstan-src/pull/6957/commits/e47d1e71c6408964f4e718760ae6a1f26c89594d
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://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 timehttps://github.com/phpstan/phpstan-src/pull/6957/commits/8ff417f36bc7c9ccff6d8481750970839c9a4a7b
8ff417fhttps://github.com/phpstan/phpstan-src/pull/6957/commits/8ff417f36bc7c9ccff6d8481750970839c9a4a7b
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Do not cast NAN to bool in the native ValueSethttps://github.com/phpstan/phpstan-src/pull/6957/commits/cf708c42e719c7afdecd35cf7bc8eb6439f44ee3
cf708c4https://github.com/phpstan/phpstan-src/pull/6957/commits/cf708c42e719c7afdecd35cf7bc8eb6439f44ee3
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://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 stringhttps://github.com/phpstan/phpstan-src/pull/6957/commits/f9d9539d1b9f2229504b0f394f3188b850421a66
f9d9539https://github.com/phpstan/phpstan-src/pull/6957/commits/f9d9539d1b9f2229504b0f394f3188b850421a66
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
7a343ddhttps://github.com/phpstan/phpstan-src/commit/7a343ddc4f937da094fc2072f2a4c8174ce40bfd
Nov 5, 2026https://github.com/phpstan/phpstan-src/pull/6957#event-35224141148
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6957
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
November 5, 2026 09:30https://github.com/phpstan/phpstan-src/pull/6957#event-35224145227
https://github.com/gnutix
gnutixhttps://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 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%2F6957
Please reload this pagehttps://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 pagehttps://github.com/phpstan/phpstan-src/pull/6957
https://github.com/ondrejmirtes
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.