[PR #10513] Use array shapes where appropriate #12419

Open
opened 2026-01-22 16:13:59 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: Yes


Working on converting these array shapes to DTO allowed me to find every signature where they are supposed to be used.

The Psalm baseline gets worse because it considers accessing an array key differently depending on whether it is defined vaguely, as array<string, mixed>, or precisely, as array{my-key?: string}.

See https://psalm.dev/r/5940ba233e

**Original Pull Request:** https://github.com/doctrine/orm/pull/10513 **State:** closed **Merged:** Yes --- Working on converting these array shapes to DTO allowed me to find every signature where they are supposed to be used. The Psalm baseline gets worse because it considers accessing an array key differently depending on whether it is defined vaguely, as `array<string, mixed>`, or precisely, as `array{my-key?: string}`. See https://psalm.dev/r/5940ba233e
admin added the pull-request label 2026-01-22 16:13:59 +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#12419