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

NullabilityColumnPropertyTypeResolver default false instead of true? #190

Closed
jirinapravnik opened this issue Jul 12, 2023 · 2 comments
Closed

Comments

@jirinapravnik
Copy link

I ma not sure if I understand it correctly.

But in this function, there should be default false, not true?

private function isNullableColumn(PhpDocInfo $phpDocInfo): bool

By default ORM\Column is nullable=false. If I don't have nullable neiehter in the attribute nor in phpdoc, it souhldn't be nullable for property. Am I missing something?

Example here also show ignoring nullable:false in the attribute, but it can be due to others refactoring rules.
image

@TomasVotruba
Copy link
Member

Hi, it could be the case, as nullable=false is removing null and makes English double-negative hard :)

Could you send a PR with your proposal so we see how it changes tests fixtures?

@TomasVotruba
Copy link
Member

Closing per #191 (comment)

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

2 participants