| 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:227dd605-b09e-eaac-c130-f1709a1d8ee0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BD28:4B3F5:436DD7:5E63CC:6B007133 |
| html-safe-nonce | 67d12cc8f66aecdb940e19ed68c213eda62734e57c64123d2f86b5e020cc88db |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDI4OjRCM0Y1OjQzNkRENzo1RTYzQ0M6NkIwMDcxMzMiLCJ2aXNpdG9yX2lkIjoiMzgxNDc2NDMwNDU1NzY5OTM3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4db310e51b3c766f1834522a54828b7a60799d672a89985eee8b1a9455006c5c |
| hovercard-subject-tag | pull_request:5151441027 |
| 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/6937/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/fd867b2a21040bddd32338c4bcc38bd1933b95c197cf752bb97ff0c1057094e2/phpstan/phpstan-src/pull/6937 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd867b2a21040bddd32338c4bcc38bd1933b95c197cf752bb97ff0c1057094e2/phpstan/phpstan-src/pull/6937 |
| og:image:alt | 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... |
| 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/6937#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6937 |
| 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%2F6937 |
| 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/6937 |
| Reload | https://github.com/phpstan/phpstan-src/pull/6937 |
| Reload | https://github.com/phpstan/phpstan-src/pull/6937 |
| 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 |
| float-range-type | https://github.com/phpstan/phpstan-src/tree/float-range-type |
| Conversation | https://github.com/phpstan/phpstan-src/pull/6937 |
| Commits8 (8) | https://github.com/phpstan/phpstan-src/pull/6937/commits |
| Checks | https://github.com/phpstan/phpstan-src/pull/6937/checks |
| Files changed | https://github.com/phpstan/phpstan-src/pull/6937/files |
| Add FloatRangeType for float | https://github.com/phpstan/phpstan-src/pull/6937#top |
| ondrejmirtes | https://github.com/ondrejmirtes |
| 2.3.x | https://github.com/phpstan/phpstan-src/tree/2.3.x |
| float-range-type | https://github.com/phpstan/phpstan-src/tree/float-range-type |
|
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| Nov 4, 2026 | https://github.com/phpstan/phpstan-src/pull/6937#issue-6199399494 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6937 |
| phpstan/phpstan#6963 | https://github.com/phpstan/phpstan/issues/6963 |
| phpstan/phpstan#13859 | https://github.com/phpstan/phpstan/issues/13859 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6937 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://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 |
| ondrejmirtes | https://github.com/ondrejmirtes |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/b3bab80ece3d45147cf59e6bc90a1ed75c82c19a..41b821483f44edfba6675843f64bc19832010ae8 |
| b3bab80 | https://github.com/phpstan/phpstan-src/commit/b3bab80ece3d45147cf59e6bc90a1ed75c82c19a |
| 41b8214 | https://github.com/phpstan/phpstan-src/commit/41b821483f44edfba6675843f64bc19832010ae8 |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/b3bab80ece3d45147cf59e6bc90a1ed75c82c19a..41b821483f44edfba6675843f64bc19832010ae8 |
| November 4, 2026 10:29 | https://github.com/phpstan/phpstan-src/pull/6937#event-35117756021 |
| ondrejmirtes | https://github.com/ondrejmirtes |
| November 4, 2026 17:49 | https://github.com/phpstan/phpstan-src/pull/6937#commits-pushed-0d6e443 |
|
| https://github.com/ondrejmirtes |
| Fold a zero float as either zero where the sign shows | https://github.com/phpstan/phpstan-src/pull/6937/commits/0d6e4436ba67874c4f3b88a72870e382f65030a6 |
| 0d6e443 | https://github.com/phpstan/phpstan-src/pull/6937/commits/0d6e4436ba67874c4f3b88a72870e382f65030a6 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Negate each member of a union in unary minus | https://github.com/phpstan/phpstan-src/pull/6937/commits/d2bccc1e7709f0a203ed119db764adf63149a46d |
| d2bccc1 | https://github.com/phpstan/phpstan-src/pull/6937/commits/d2bccc1e7709f0a203ed119db764adf63149a46d |
| 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 FloatRangeType for float and the float range aliases | https://github.com/phpstan/phpstan-src/pull/6937/commits/63b4c9e67780ce53152d9b200da586a723f394cc |
| 63b4c9e | https://github.com/phpstan/phpstan-src/pull/6937/commits/63b4c9e67780ce53152d9b200da586a723f394cc |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://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 |
| b060a04 | https://github.com/phpstan/phpstan-src/pull/6937/commits/b060a046431e5d4c015c79d377ced5e770c0d1b9 |
| 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 infer numeric-string for a float cast to string | https://github.com/phpstan/phpstan-src/pull/6937/commits/9b2539cf8f1c027d071da14412038ddb4d5d0f60 |
| 9b2539c | https://github.com/phpstan/phpstan-src/pull/6937/commits/9b2539cf8f1c027d071da14412038ddb4d5d0f60 |
| 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 casts of float ranges | https://github.com/phpstan/phpstan-src/pull/6937/commits/8d17310fefae239da3519e06817339e53cc02d51 |
| 8d17310 | https://github.com/phpstan/phpstan-src/pull/6937/commits/8d17310fefae239da3519e06817339e53cc02d51 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Infer float ranges for math functions and int division | https://github.com/phpstan/phpstan-src/pull/6937/commits/71d0358f926ef9907038d86919889e75ea77cd3f |
| 71d0358 | https://github.com/phpstan/phpstan-src/pull/6937/commits/71d0358f926ef9907038d86919889e75ea77cd3f |
| phpstan/phpstan#6963 | https://github.com/phpstan/phpstan/issues/6963 |
| https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b | https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b |
|
| https://github.com/ondrejmirtes |
| Make FloatRangeType a CompoundType and describe it by verbosity level | https://github.com/phpstan/phpstan-src/pull/6937/commits/6b55a99d3adc2e6e92b7bd18bf053dfe9f22db7f |
| 6b55a99 | https://github.com/phpstan/phpstan-src/pull/6937/commits/6b55a99d3adc2e6e92b7bd18bf053dfe9f22db7f |
| 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 |
| force-pushed | https://github.com/phpstan/phpstan-src/compare/514f52a23bab5151c5e3d85dabb7b4f5df49ec81..6b55a99d3adc2e6e92b7bd18bf053dfe9f22db7f |
| 514f52a | https://github.com/phpstan/phpstan-src/commit/514f52a23bab5151c5e3d85dabb7b4f5df49ec81 |
| 6b55a99 | https://github.com/phpstan/phpstan-src/commit/6b55a99d3adc2e6e92b7bd18bf053dfe9f22db7f |
|
Compare
| https://github.com/phpstan/phpstan-src/compare/514f52a23bab5151c5e3d85dabb7b4f5df49ec81..6b55a99d3adc2e6e92b7bd18bf053dfe9f22db7f |
| November 4, 2026 17:58 | https://github.com/phpstan/phpstan-src/pull/6937#event-35158475893 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| 4563fe2 | https://github.com/phpstan/phpstan-src/commit/4563fe2f28beeae79ee6343dc638dbf3a9e41908 |
| Nov 4, 2026 | https://github.com/phpstan/phpstan-src/pull/6937#event-35158730391 |
| Please reload this page | https://github.com/phpstan/phpstan-src/pull/6937 |
| https://github.com/ondrejmirtes |
| ondrejmirtes | https://github.com/ondrejmirtes |
| November 4, 2026 18:01 | https://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 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%2F6937 |
| Please reload this page | https://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 page | https://github.com/phpstan/phpstan-src/pull/6937 |
|
| 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 |