Skip to content

False argument.bitmaskNotAllowed reported for PDOStatement methods fetchAll and setFetchMode parameter #1 $mode #14719

@mdissington

Description

@mdissington

Bug report

You can combine constants for PDOStatement fetchAll and setFetchMode $mode aparameter but PHPStan reports this as an error unless you use named arguments.

Examples of bitmask usage in PHP docs Fetch Modes

Code snippet that reproduces the problem

https://phpstan.org/r/5d989d39-565d-4ea8-b2b6-1bbe3e2b39bd

Expected output

No errors.

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions