Warning: The float 3.1987520040840724E+20 is not representable as an int
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
The warning points to vendor/phpstan/tally/src/Complexity/PresetFit.php:146; start by reading the integer cast there and how the preset fit values reach it during vendor/bin/tally accept tmp/tally. Reproduce with the reported command and data, then check the acceptance behavior for out-of-range floats; done means the command handles these values without warnings and accepts the intended cases.
由索引模型根据 Issue 内容生成。
描述
in https://github.com/phpstan/phpstan-src/pull/7112 I tried to update the expectations as suggested in the CI Summary with:
gh run download 44731016888 -R phpstan/phpstan-src -p 'tally-*' -D tmp/tally
vendor/bin/tally accept tmp/tally
running this command locally gives me (and not expectations changed):
Warning: The float 1.8172022061245683E+76 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 1.8781584298594225E+75 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 8.593944123082061E+75 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 1.0088696739884575E+75 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 9.356791175815627E+19 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 5.873353012736305E+77 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 3.896795872577664E+19 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 2.446058413420491E+77 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 5.013941907644586E+19 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 3.147302344960384E+77 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 1.510766270849869E+39 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 2.2069177606313817E+40 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 1.0455728184031582E+38 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 4.401434758675525E+40 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 2.4169150147779642E+40 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 8.671517387572264E+40 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 1.8449632658526047E+39 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 2.7615646225866164E+40 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 1.7942022294582593E+41 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 6.915223184631868E+21 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 4.667896571276506E+19 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 2.930086166816529E+77 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 8.055416953741813E+20 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 5.056467173959602E+78 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 2.561619320550667E+19 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 1.6079545082428642E+77 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 3.1987520040840724E+20 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 2.0078891755907754E+78 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 2.1335803234667725E+19 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 1.3392700751020153E+77 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 3.2376940671119917E+19 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 2.0323335047319844E+77 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 4.183055923892401E+19 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 2.6257467599084525E+77 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 3.4202625479979964E+76 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 6.012812157497691E+19 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 3.774303362838289E+77 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 1.8145519355274007E+75 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 1.8039508531387304E+75 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 1.819852476721736E+75 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 2.818268204315443E+19 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 1.7690556236093573E+77 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 3.086858506874315E+76 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 8.094685527742716E+19 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Warning: The float 5.081116457360325E+77 is not representable as an int, cast occurred in /Users/staabm/workspace/phpstan-src/vendor/phpstan/tally/src/Complexity/PresetFit.php on line 146
Accepted the numbers of 0 cases.
- 主要语言
- PHP
- 星标
- 83
- 派生
- 0
- 平均合并
- 1 小时 34 分钟
- 30 天内合并 PR
- 11
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
phpstan/tally 的其他 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 63/100
phpstan/phpstan-phpunit#361 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
HE-Arc/le-panier-du-coin#49 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 2 天内回复
-
15.0
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 78/100
woocommerce/woocommerce-subscriptions-importer-exporter#298 ·