Skip to content

?T vs T|null in extended interface #8549

@vudaltsov

Description

@vudaltsov

https://psalm.dev/r/8da86fba89

I researched a little and found that types have different order in $input_class_storage->template_extended_params, but TemplateStandinTypeReplacer::getMappedGenericTypeParams on line 1209 implies that template param goes first.

I want to work on this issue. What is the best way to fix that?

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