Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for conditional return type #3853

@greg0ire

Description

@greg0ire

Feature request

This is a follow up of #3849 , and of doctrine/dbal#4264

I tried your suggestion, and it seems the root cause is conditional return types are not supported: https://phpstan.org/r/bdef5abe-d824-4311-aa6e-e0cce31ede92

PHPDoc tag @phpstan-return has invalid value (($params is array{wrapperClass:mixed} ? T : Connection)): Unexpected token "$params", expected type at offset 82

Cc @pkruithof @morozov

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