vimeo/psalm

Show issue for bitwise operations on floats

Open

#8,362 创建于 2022年8月3日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)PHP (668 fork)batch import
Help wantedeasy problemsenhancementgood first issue

仓库指标

Star
 (5,369 star)
PR 合并指标
 (平均合并 3天 12小时) (30 天内合并 5 个 PR)

描述

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

贡献者指南