Skip to content

Unable to resolve the template type TRest in call to function Psl\Type\intersection #6

Open
@bendavies

Description

@bendavies

Hi,

Unsure if this is the best place to raise this (i suspect not) but:

$offset = Type\intersection(
    Type\int(Foo::class),
    Type\instance_of(Bar::class),
)->assert($offset);

will error:
Unable to resolve the template type TRest in call to function Psl\Type\intersection

Same happens for Type\union

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