René's URL Explorer Experiment


Title: Add FloatRangeType for float by ondrejmirtes · Pull Request #6937 · phpstan/phpstan-src · GitHub

Open Graph Title: Add FloatRangeType for float by ondrejmirtes · Pull Request #6937 · phpstan/phpstan-src

X Title: Add FloatRangeType for float by ondrejmirtes · Pull Request #6937 · phpstan/phpstan-src

Description: PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - Add FloatRangeType for float by ondrejmirtes · Pull Request #6937 · phpstan/phpstan-src

Open Graph Description: Adds FloatRangeType, so PHPStan can say which floats a value can be, not only that it is a float. Syntax. float<min, max>, with min and max for open ends, plus positive-float, non-negative-fl...

X Description: Adds FloatRangeType, so PHPStan can say which floats a value can be, not only that it is a float. Syntax. float&lt;min, max&gt;, with min and max for open ends, plus positive-float, non-neg...

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

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:227dd605-b09e-eaac-c130-f1709a1d8ee0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBD28:4B3F5:436DD7:5E63CC:6B007133
html-safe-nonce67d12cc8f66aecdb940e19ed68c213eda62734e57c64123d2f86b5e020cc88db
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDI4OjRCM0Y1OjQzNkRENzo1RTYzQ0M6NkIwMDcxMzMiLCJ2aXNpdG9yX2lkIjoiMzgxNDc2NDMwNDU1NzY5OTM3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4db310e51b3c766f1834522a54828b7a60799d672a89985eee8b1a9455006c5c
hovercard-subject-tagpull_request:5151441027
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/6937/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/fd867b2a21040bddd32338c4bcc38bd1933b95c197cf752bb97ff0c1057094e2/phpstan/phpstan-src/pull/6937
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fd867b2a21040bddd32338c4bcc38bd1933b95c197cf752bb97ff0c1057094e2/phpstan/phpstan-src/pull/6937
og:image:altAdds FloatRangeType, so PHPStan can say which floats a value can be, not only that it is a float. Syntax. float<min, max>, with min and max for open ends, plus positive-float, non-negative-fl...
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/6937#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6937
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%2F6937
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/6937
Reloadhttps://github.com/phpstan/phpstan-src/pull/6937
Reloadhttps://github.com/phpstan/phpstan-src/pull/6937
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
float-range-typehttps://github.com/phpstan/phpstan-src/tree/float-range-type
Conversationhttps://github.com/phpstan/phpstan-src/pull/6937
Commits8 (8)https://github.com/phpstan/phpstan-src/pull/6937/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/6937/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/6937/files
Add FloatRangeType for floathttps://github.com/phpstan/phpstan-src/pull/6937#top
ondrejmirteshttps://github.com/ondrejmirtes
2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
float-range-typehttps://github.com/phpstan/phpstan-src/tree/float-range-type
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Nov 4, 2026https://github.com/phpstan/phpstan-src/pull/6937#issue-6199399494
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6937
phpstan/phpstan#6963https://github.com/phpstan/phpstan/issues/6963
phpstan/phpstan#13859https://github.com/phpstan/phpstan/issues/13859
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6937
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Nov 4, 2026 https://github.com/phpstan/phpstan-src/pull/6937#ref-pullrequest-6199403451
Narrow loose comparisons by the values each side can loosely equal #6938 https://github.com/phpstan/phpstan-src/pull/6938
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
force-pushedhttps://github.com/phpstan/phpstan-src/compare/b3bab80ece3d45147cf59e6bc90a1ed75c82c19a..41b821483f44edfba6675843f64bc19832010ae8
b3bab80https://github.com/phpstan/phpstan-src/commit/b3bab80ece3d45147cf59e6bc90a1ed75c82c19a
41b8214https://github.com/phpstan/phpstan-src/commit/41b821483f44edfba6675843f64bc19832010ae8
Compare https://github.com/phpstan/phpstan-src/compare/b3bab80ece3d45147cf59e6bc90a1ed75c82c19a..41b821483f44edfba6675843f64bc19832010ae8
November 4, 2026 10:29https://github.com/phpstan/phpstan-src/pull/6937#event-35117756021
ondrejmirteshttps://github.com/ondrejmirtes
November 4, 2026 17:49https://github.com/phpstan/phpstan-src/pull/6937#commits-pushed-0d6e443
https://github.com/ondrejmirtes
Fold a zero float as either zero where the sign showshttps://github.com/phpstan/phpstan-src/pull/6937/commits/0d6e4436ba67874c4f3b88a72870e382f65030a6
0d6e443https://github.com/phpstan/phpstan-src/pull/6937/commits/0d6e4436ba67874c4f3b88a72870e382f65030a6
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Negate each member of a union in unary minushttps://github.com/phpstan/phpstan-src/pull/6937/commits/d2bccc1e7709f0a203ed119db764adf63149a46d
d2bccc1https://github.com/phpstan/phpstan-src/pull/6937/commits/d2bccc1e7709f0a203ed119db764adf63149a46d
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Add FloatRangeType for float and the float range aliaseshttps://github.com/phpstan/phpstan-src/pull/6937/commits/63b4c9e67780ce53152d9b200da586a723f394cc
63b4c9ehttps://github.com/phpstan/phpstan-src/pull/6937/commits/63b4c9e67780ce53152d9b200da586a723f394cc
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Narrow floats into ranges in comparisons, is_nan(), is_finite() and i…https://github.com/phpstan/phpstan-src/pull/6937/commits/b060a046431e5d4c015c79d377ced5e770c0d1b9
b060a04https://github.com/phpstan/phpstan-src/pull/6937/commits/b060a046431e5d4c015c79d377ced5e770c0d1b9
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 infer numeric-string for a float cast to stringhttps://github.com/phpstan/phpstan-src/pull/6937/commits/9b2539cf8f1c027d071da14412038ddb4d5d0f60
9b2539chttps://github.com/phpstan/phpstan-src/pull/6937/commits/9b2539cf8f1c027d071da14412038ddb4d5d0f60
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 casts of float rangeshttps://github.com/phpstan/phpstan-src/pull/6937/commits/8d17310fefae239da3519e06817339e53cc02d51
8d17310https://github.com/phpstan/phpstan-src/pull/6937/commits/8d17310fefae239da3519e06817339e53cc02d51
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Infer float ranges for math functions and int divisionhttps://github.com/phpstan/phpstan-src/pull/6937/commits/71d0358f926ef9907038d86919889e75ea77cd3f
71d0358https://github.com/phpstan/phpstan-src/pull/6937/commits/71d0358f926ef9907038d86919889e75ea77cd3f
phpstan/phpstan#6963https://github.com/phpstan/phpstan/issues/6963
https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1bhttps://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b
https://github.com/ondrejmirtes
Make FloatRangeType a CompoundType and describe it by verbosity levelhttps://github.com/phpstan/phpstan-src/pull/6937/commits/6b55a99d3adc2e6e92b7bd18bf053dfe9f22db7f
6b55a99https://github.com/phpstan/phpstan-src/pull/6937/commits/6b55a99d3adc2e6e92b7bd18bf053dfe9f22db7f
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
force-pushedhttps://github.com/phpstan/phpstan-src/compare/514f52a23bab5151c5e3d85dabb7b4f5df49ec81..6b55a99d3adc2e6e92b7bd18bf053dfe9f22db7f
514f52ahttps://github.com/phpstan/phpstan-src/commit/514f52a23bab5151c5e3d85dabb7b4f5df49ec81
6b55a99https://github.com/phpstan/phpstan-src/commit/6b55a99d3adc2e6e92b7bd18bf053dfe9f22db7f
Compare https://github.com/phpstan/phpstan-src/compare/514f52a23bab5151c5e3d85dabb7b4f5df49ec81..6b55a99d3adc2e6e92b7bd18bf053dfe9f22db7f
November 4, 2026 17:58https://github.com/phpstan/phpstan-src/pull/6937#event-35158475893
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
4563fe2https://github.com/phpstan/phpstan-src/commit/4563fe2f28beeae79ee6343dc638dbf3a9e41908
Nov 4, 2026https://github.com/phpstan/phpstan-src/pull/6937#event-35158730391
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6937
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
November 4, 2026 18:01https://github.com/phpstan/phpstan-src/pull/6937#event-35158736984
Keep decimal columns numeric-string with PHPStan 2.3.6 phpstan/phpstan-doctrine#812 https://github.com/phpstan/phpstan-doctrine/pull/812
Expect float ranges from Assert::integerish() with PHPStan 2.3.6 phpstan/phpstan-webmozart-assert#236 https://github.com/phpstan/phpstan-webmozart-assert/pull/236
The false branch of < and <= narrows the other operand even when the compared value can be NAN phpstan/phpstan#15713 https://github.com/phpstan/phpstan/issues/15713
Narrowing a T of float value reports "should return T of float but returns T" phpstan/phpstan#15714 https://github.com/phpstan/phpstan/issues/15714
Narrowing a float by !== 1.5 depends on whether NAN was removed first phpstan/phpstan#15716 https://github.com/phpstan/phpstan/issues/15716
(int) ceil(count($list) / 4) is still int after float ranges phpstan/phpstan#15717 https://github.com/phpstan/phpstan/issues/15717
Type min() / max() of two arguments as the union of both comparison orders #7050 https://github.com/phpstan/phpstan-src/pull/7050
Do not narrow a comparison operand whose counterpart can be NAN #7058 https://github.com/phpstan/phpstan-src/pull/7058
test: keep the transaction assertion independent of the sqrt() range calebdw/phpstan-laravel#55 https://github.com/calebdw/phpstan-laravel/pull/55
Tests fail with PHPStan 2.3.6 staabm/phpstan-dba#830 https://github.com/staabm/phpstan-dba/issues/830
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%2F6937
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6937
Support for signed float types https://github.com/phpstan/phpstan/issues/13859
Add range for float https://github.com/phpstan/phpstan/issues/6963
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6937
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.