Skip to content

Conversation

@benno-truevault
Copy link

We want to be able to support using native types for object properties, e.g.

class MyModel {
    public int $id;
}

Without this change, the only way to support native types is to use a default value, which isn't as nice:

class ModelWithNullableDefault {
    public ?int $id = null;
}

class ModelWithZeroDefault {
    public int $id = 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant