René's URL Explorer Experiment


Title: Type min() / max() of two arguments as the union of both comparison orders by zonuexe · Pull Request #7050 · phpstan/phpstan-src · GitHub

Open Graph Title: Type min() / max() of two arguments as the union of both comparison orders by zonuexe · Pull Request #7050 · phpstan/phpstan-src

X Title: Type min() / max() of two arguments as the union of both comparison orders by zonuexe · Pull Request #7050 · phpstan/phpstan-src

Description: PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - Type min() / max() of two arguments as the union of both comparison orders by zonuexe · Pull Request #7050 · phpstan/phpstan-src

Open Graph Description: MinMaxFunctionReturnTypeExtension types min($a, $b) as $a < $b ? $a : $b and max($a, $b) as $a < $b ? $b : $a. When the arguments compare as equal or one of them is NAN, which argument PHP re...

X Description: MinMaxFunctionReturnTypeExtension types min($a, $b) as $a &lt; $b ? $a : $b and max($a, $b) as $a &lt; $b ? $b : $a. When the arguments compare as equal or one of them is NAN, which argumen...

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

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:cc1213b2-cd35-920c-ee35-95d3390d0ac6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAE72:3DCBB0:33AEE6:48A7C6:6B006E07
html-safe-noncefd61300cf6f8ee920ededcad6c2dc5269a2f9582fd2d3a2b7204cb50056697aa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTcyOjNEQ0JCMDozM0FFRTY6NDhBN0M2OjZCMDA2RTA3IiwidmlzaXRvcl9pZCI6Ijg3NzE3MjE2Nzg3NTg2MzcwNjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6d988e45d35d0e1e499c06aade7ba9e5c7691f267a766114384d7b3ff5d116ce
hovercard-subject-tagpull_request:5288337079
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/7050/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/9d72c54fd53670390e51ae714ca8031ace5ec70e7cfa6405b2bf71f28ac707df/phpstan/phpstan-src/pull/7050
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9d72c54fd53670390e51ae714ca8031ace5ec70e7cfa6405b2bf71f28ac707df/phpstan/phpstan-src/pull/7050
og:image:altMinMaxFunctionReturnTypeExtension types min($a, $b) as $a < $b ? $a : $b and max($a, $b) as $a < $b ? $b : $a. When the arguments compare as equal or one of them is NAN, which argument PHP re...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezonuexe
hostnamegithub.com
expected-hostnamegithub.com
None6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa
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
release46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpstan/phpstan-src/pull/7050#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F7050
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%2F7050
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/7050
Reloadhttps://github.com/phpstan/phpstan-src/pull/7050
Reloadhttps://github.com/phpstan/phpstan-src/pull/7050
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
staabmhttps://github.com/staabm
phpstan:2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
zonuexe:minmax-nan-both-ordershttps://github.com/zonuexe/phpstan-src/tree/minmax-nan-both-orders
Conversationhttps://github.com/phpstan/phpstan-src/pull/7050
Commits6 (6)https://github.com/phpstan/phpstan-src/pull/7050/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/7050/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/7050/files
Type min() / max() of two arguments as the union of both comparison ordershttps://github.com/phpstan/phpstan-src/pull/7050#top
staabmhttps://github.com/staabm
phpstan:2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
zonuexe:minmax-nan-both-ordershttps://github.com/zonuexe/phpstan-src/tree/minmax-nan-both-orders
https://github.com/zonuexe
zonuexehttps://github.com/zonuexe
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issue-6362737860
#6937https://github.com/phpstan/phpstan-src/pull/6937
Add FloatRangeType for float #6937https://github.com/phpstan/phpstan-src/pull/6937
Add FloatRangeType for float #6937https://github.com/phpstan/phpstan-src/pull/6937
#6937https://github.com/phpstan/phpstan-src/pull/6937
max/min return wrong value if signed (negative) zero php/php-src#20221https://github.com/php/php-src/issues/20221
Add FloatRangeType for float #6937https://github.com/phpstan/phpstan-src/pull/6937
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/staabm
staabmhttps://github.com/staabm
Nov 13, 2026 https://github.com/phpstan/phpstan-src/pull/7050#pullrequestreview-5887243005
View reviewed changes https://github.com/phpstan/phpstan-src/pull/7050/files
src/Type/Php/MinMaxFunctionReturnTypeExtension.phphttps://github.com/phpstan/phpstan-src/pull/7050/files#diff-b1a10b0e3c0ccbea063bae8da98c7f26d862672ddc4e2992db23ba79c5b07121
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/staabm
staabmhttps://github.com/staabm
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6846286723
@SanderMullerhttps://github.com/SanderMuller
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/staabm
staabmhttps://github.com/staabm
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6846318887
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/zonuexe
zonuexehttps://github.com/zonuexe
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6846782202
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/staabm
staabmhttps://github.com/staabm
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6846849685
https://3v4l.org/A3Rc1#veolhttps://3v4l.org/A3Rc1#veol
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/zonuexe
zonuexehttps://github.com/zonuexe
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6847017063
https://3v4l.org/tVFpJhttps://3v4l.org/tVFpJ
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/zonuexe
zonuexehttps://github.com/zonuexe
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6849451964
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
Nov 13, 2026 https://github.com/phpstan/phpstan-src/pull/7050#ref-pullrequest-5543337082
Add range() throw type extension #6539 https://github.com/phpstan/phpstan-src/pull/6539
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
Nov 13, 2026 https://github.com/phpstan/phpstan-src/pull/7050#pullrequestreview-5891075389
View reviewed changes https://github.com/phpstan/phpstan-src/pull/7050/files
SanderMullerhttps://github.com/SanderMuller
https://github.com/phpstan/phpstan-src/pull/7050#pullrequestreview-5891075389
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
de379c9https://github.com/phpstan/phpstan-src/commit/de379c9df65191f0b8c677e6d768ea555f14a8bc
#6539https://github.com/phpstan/phpstan-src/pull/6539
#7038https://github.com/phpstan/phpstan-src/pull/7038
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/zonuexe
zonuexehttps://github.com/zonuexe
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6853226434
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6853604813
7ce253fhttps://github.com/phpstan/phpstan-src/commit/7ce253f4cd54535d7b883b3cf058012e1ce28c6c
de379c9https://github.com/phpstan/phpstan-src/commit/de379c9df65191f0b8c677e6d768ea555f14a8bc
7ce253fhttps://github.com/phpstan/phpstan-src/commit/7ce253f4cd54535d7b883b3cf058012e1ce28c6c
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/zonuexe
zonuexehttps://github.com/zonuexe
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6854383786
phpstan/phpstan#15713https://github.com/phpstan/phpstan/issues/15713
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
zonuexehttps://github.com/zonuexe
November 13, 2026 16:06https://github.com/phpstan/phpstan-src/pull/7050#commits-pushed-8ef92fc
https://github.com/zonuexe
https://github.com/staabm
Type min() / max() of two arguments as the union of both comparison o…https://github.com/phpstan/phpstan-src/pull/7050/commits/8ef92fc6b50aa7e5e39a6e024b51bdfaaf6a6733
8ef92fchttps://github.com/phpstan/phpstan-src/pull/7050/commits/8ef92fc6b50aa7e5e39a6e024b51bdfaaf6a6733
https://github.com/zonuexe
https://github.com/staabm
Test min() / max() with NAN and int|float arguments in the comparison…https://github.com/phpstan/phpstan-src/pull/7050/commits/eefc51e588150834fd5ba82a9bf051bb98a12dee
eefc51ehttps://github.com/phpstan/phpstan-src/pull/7050/commits/eefc51e588150834fd5ba82a9bf051bb98a12dee
https://github.com/zonuexe
https://github.com/staabm
Declare int|float in the min() / max() fixtures with PHPDoc so they l…https://github.com/phpstan/phpstan-src/pull/7050/commits/30c6874a26cbca33fb835e6bcb4eac3edcdbabcb
30c6874https://github.com/phpstan/phpstan-src/pull/7050/commits/30c6874a26cbca33fb835e6bcb4eac3edcdbabcb
https://github.com/zonuexe
https://github.com/staabm
Do not narrow constant arguments of min() / max() by the comparison i…https://github.com/phpstan/phpstan-src/pull/7050/commits/021679f85c15aee9fcab69384db341d0c9d8b344
021679fhttps://github.com/phpstan/phpstan-src/pull/7050/commits/021679f85c15aee9fcab69384db341d0c9d8b344
https://github.com/zonuexe
https://github.com/staabm
Keep literal arguments of min() / max() out of AlwaysRememberedExprhttps://github.com/phpstan/phpstan-src/pull/7050/commits/14e39d654c5e9e52b90934a58140c9a549848e87
14e39d6https://github.com/phpstan/phpstan-src/pull/7050/commits/14e39d654c5e9e52b90934a58140c9a549848e87
https://github.com/staabm
staabmhttps://github.com/staabm
force-pushedhttps://github.com/phpstan/phpstan-src/compare/39972661dddcb89a68b16a63c4fc38464b4930a3..14e39d654c5e9e52b90934a58140c9a549848e87
3997266https://github.com/phpstan/phpstan-src/commit/39972661dddcb89a68b16a63c4fc38464b4930a3
14e39d6https://github.com/phpstan/phpstan-src/commit/14e39d654c5e9e52b90934a58140c9a549848e87
Compare https://github.com/phpstan/phpstan-src/compare/39972661dddcb89a68b16a63c4fc38464b4930a3..14e39d654c5e9e52b90934a58140c9a549848e87
November 13, 2026 15:06https://github.com/phpstan/phpstan-src/pull/7050#event-36042015279
https://github.com/staabm
staabmhttps://github.com/staabm
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6856895286
@SanderMullerhttps://github.com/SanderMuller
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/SanderMuller
SanderMullerhttps://github.com/SanderMuller
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6857043443
7ce253fhttps://github.com/phpstan/phpstan-src/commit/7ce253f4cd54535d7b883b3cf058012e1ce28c6c
7ce253fhttps://github.com/phpstan/phpstan-src/commit/7ce253f4cd54535d7b883b3cf058012e1ce28c6c
7ce253fhttps://github.com/phpstan/phpstan-src/commit/7ce253f4cd54535d7b883b3cf058012e1ce28c6c
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/zonuexe
Decide the comparison operands of min() / max() by the type, not the …https://github.com/phpstan/phpstan-src/pull/7050/commits/48e94fcef4149e7e84aa373de920b10398b9caf9
48e94fchttps://github.com/phpstan/phpstan-src/pull/7050/commits/48e94fcef4149e7e84aa373de920b10398b9caf9
https://github.com/staabm
staabmhttps://github.com/staabm
94519e2https://github.com/phpstan/phpstan-src/commit/94519e24fb01caf54fa49b1735205e21bff703dc
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#event-36063083699
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/staabm
staabmhttps://github.com/staabm
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6862083393
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/zonuexe
zonuexehttps://github.com/zonuexe
November 13, 2026 18:54https://github.com/phpstan/phpstan-src/pull/7050#event-36063175205
https://github.com/zonuexe
zonuexehttps://github.com/zonuexe
Nov 13, 2026 https://github.com/phpstan/phpstan-src/pull/7050#ref-pullrequest-6378516644
Do not narrow a comparison operand whose counterpart can be NAN #7058 https://github.com/phpstan/phpstan-src/pull/7058
https://github.com/zonuexe
zonuexehttps://github.com/zonuexe
Nov 13, 2026https://github.com/phpstan/phpstan-src/pull/7050#issuecomment-6863173792
94519e2https://github.com/phpstan/phpstan-src/commit/94519e24fb01caf54fa49b1735205e21bff703dc
#7058https://github.com/phpstan/phpstan-src/pull/7058
phpstan/phpstan#15713https://github.com/phpstan/phpstan/issues/15713
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
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%2F7050
https://github.com/staabm
staabm https://github.com/staabm
https://github.com/phpstan/phpstan-src/pull/7050/files/ead0b84409ae4523264b31e309f9e69e55bb48e6
https://github.com/SanderMuller
SanderMuller https://github.com/SanderMuller
https://github.com/phpstan/phpstan-src/pull/7050/files/de379c9df65191f0b8c677e6d768ea555f14a8bc
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/7050
https://github.com/zonuexe
https://github.com/staabm
https://github.com/SanderMuller
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.