vimeo/psalm

Show issue for bitwise operations on floats

Ouverte

#8 362 ouverte le 3 août 2022

 (3 commentaires) (0 réaction) (0 personne assignée)PHP (668 forks)batch import
Help wantedeasy problemsenhancementgood first issue

Métriques du dépôt

Stars
 (5 369 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

I could have sworn there was a PHP warning for doing bitwise operations on floats, but apparently not... Do we want to add an issue for that to Psalm?

Originally posted by @AndrolGenhald in https://github.com/vimeo/psalm/issues/7992#issuecomment-1133272149

Apparently it is a warning, but only if the float isn't exactly an integer: https://3v4l.org/kWXWH

https://psalm.dev/r/42a6ae8735

Guide contributeur