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

Added "false" value to $columnPrefix type declaration. #9493

Merged
merged 1 commit into from
Feb 9, 2022
Merged

Added "false" value to $columnPrefix type declaration. #9493

merged 1 commit into from
Feb 9, 2022

Conversation

gordinskiy
Copy link
Contributor

If i passing "false" value as third argument of ClassMetadataBuilder::addEmbedded method, I get an error from PHPStan:
Parameter #3 $columnPrefix of method Doctrine\ORM\Mapping\Builder\ClassMetadataBuilder::addEmbedded() expects string|null, false given.

It is a valid value according documentation and work well.

@derrabus
Copy link
Member

derrabus commented Feb 9, 2022

Thank you!

@derrabus derrabus merged commit 530f515 into doctrine:2.11.x Feb 9, 2022
derrabus added a commit that referenced this pull request Feb 9, 2022
* 2.11.x:
  Added "false" value to $columnPrefix type declaration. (#9493)
@gordinskiy gordinskiy deleted the fix-type-declaration branch February 11, 2022 16:59
derrabus added a commit to derrabus/orm that referenced this pull request Feb 14, 2022
* 2.12.x:
  Fix types on caches (doctrine#9507)
  Fix AbstractQuery::setParameter phpdoc (doctrine#9504)
  Added "false" value to $columnPrefix type declaration. (doctrine#9493)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants