Skip to content

Member types missing for constructor argument promotion #8

@thekid

Description

@thekid
#[@test]
public function type_information() {
  $t= $this->type('class <T> {
    public function __construct(private int $id) {
    }
  }');
  $this->assertEquals(Primitive::$INT, $t->getField('id')->getType());
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions