Skip to content

mysqli_stmt::bind_param effect on passed variables #2553

@serdula

Description

@serdula

Bug report

Hi,
I get error with mysqli_stmt::bind_param. It seems phpstan thinks function has no effect on passed variables.

Code snippet that reproduces the problem

https://phpstan.org/r/2f8bef8e-9524-4598-a450-8340392ae21e

Expected output

I expected no errors here, but PhpStan reports:

30: Strict comparison using === between null and 1 will always evaluate to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions