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

Nullable types or union types with null #135

Open
krzysztofrewak opened this issue Oct 10, 2024 · 0 comments
Open

Nullable types or union types with null #135

krzysztofrewak opened this issue Oct 10, 2024 · 0 comments

Comments

@krzysztofrewak
Copy link
Member

I would like to unify these:

protected AuditEntry|null $auditEntry = null;

and

protected ?AuditEntry $auditEntry = null;

In my sense of aesthetics nullable option is better. I also think that we are using it more often in our projects.

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

No branches or pull requests

1 participant