mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #10513] Use array shapes where appropriate #12419
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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, asarray{my-key?: string}.See https://psalm.dev/r/5940ba233e