Warning: The float 3.1987520040840724E+20 is not representable as an int

Đang mở
#13 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
PHP
Star
83
Fork
0
Merge trung bình
1 giờ 34 phút
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của phpstan/tally

Tất cả issue của phpstan/tally

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.