[PR #11408] Fix fromMappingArray definition #13004

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

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

State: closed
Merged: Yes


Hi,

Kinda similar to https://github.com/doctrine/orm/pull/11226 @greg0ire @derrabus

I got a psalm error because FieldMapping::fromMappingArray does not accept nullable key.
This was because the array param was missing lot of keys.

I tried to fix the phpdoc of every fromMappingArray keys by looking at all the property of the class and allow them as array keys in the $mappingArray parameter.

Thanks.

**Original Pull Request:** https://github.com/doctrine/orm/pull/11408 **State:** closed **Merged:** Yes --- Hi, Kinda similar to https://github.com/doctrine/orm/pull/11226 @greg0ire @derrabus I got a psalm error because `FieldMapping::fromMappingArray` does not accept `nullable` key. This was because the array param was missing lot of keys. I tried to fix the phpdoc of every fromMappingArray keys by looking at all the property of the class and allow them as array keys in the `$mappingArray` parameter. Thanks.
admin added the pull-request label 2026-01-22 16:15:51 +01:00
admin closed this issue 2026-01-22 16:15:51 +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#13004