Skip to content

InvalidBinaryOperationRule not reporting Mod (%) between objects #7538

@janedbal

Description

@janedbal

Bug report

Mod is not supported between objects: https://3v4l.org/iBbSZ, but phpstan does not report it.

Code snippet that reproduces the problem

https://phpstan.org/r/5de46e05-eda6-4534-afec-70e6fc813ab4

Expected output

Binary operation "%" between stdClass and stdClass results in an error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions