Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IDENTITY() type inference support #273

Merged
merged 1 commit into from
Jan 28, 2022

Conversation

arnaud-lb
Copy link
Contributor

Supports IDENTITY(a.assoc) or IDENTITY(a.assoc, 'id_field') where id_field is the name of one of the id fields of the target class.

Does not support IDENTITY(a.assoc) when the target id field is also an association (this is inferred to mixed).

Supports IDENTITY(a.assoc) or IDENTITY(a.assoc, 'id_field') where
'id_field' is the name of one of the id fields of the target class.

Does not support IDENTITY(a.assoc) when the target id field is also an
association.
@ondrejmirtes ondrejmirtes merged commit c49475b into phpstan:master Jan 28, 2022
@ondrejmirtes
Copy link
Member

Thank you!

1 similar comment
@janedbal
Copy link
Contributor

Thank you!

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.

3 participants