[PR #9168] Fix discriminatorColumn phpdoc #11414

Closed
opened 2026-01-22 16:10:43 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/9168

State: closed
Merged: Yes


Hi @greg0ire, since the property is not initialized, the phpdoc should allow null.
This avoid a phpstan error if we're doing an isset check on the property.

The other solution is to initialize the value to [] but tests are failing

**Original Pull Request:** https://github.com/doctrine/orm/pull/9168 **State:** closed **Merged:** Yes --- Hi @greg0ire, since the property is not initialized, the phpdoc should allow `null`. This avoid a phpstan error if we're doing an `isset` check on the property. The other solution is to initialize the value to `[]` but tests are failing
admin added the pull-request label 2026-01-22 16:10:43 +01:00
admin closed this issue 2026-01-22 16:10:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#11414