Skip to content

Check types of repository method parameter values #763

@whataboutpereira

Description

@whataboutpereira

I keep opening the can of worms with BcMath\Number.

Now ran into a problem without any advance warning where one can't do $repository->count(['field' => 0]) on a BcMath\Number / Types::NUMBER field because:

Could not convert PHP value 0 to type Doctrine\DBAL\Types\NumberType. Expected one of the following types: null, BcMath\Number

Unless it's relaxed on Doctrine side, it would be great if those types were checked also.

Related issue: doctrine/dbal#7383

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