Skip to content

Invalid mapping type to property type check for binary mapping since DBAL v.4 #659

Open
@v-noskov

Description

@v-noskov

Since DBAL v.4 binary mapping converts DB value to PHP string instead of resource. But PHPStan check produces an error in this case:

Property Entity\Foo::$bar type mapping          
         mismatch: database can contain resource|null but property expects     
         string|null.

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