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

Aperta
#13 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
PHP
Stelle
83
Fork
0
Merge medio
1h 34m
PR unite (30g)
11

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di phpstan/tally

Tutte le issue di phpstan/tally

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.