[PR #8604] Fix psalm param typehint for OneToManyAssociationBuilder::setOrderBy method #11084

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

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

State: closed
Merged: Yes


Fix psalm/phpstan error

code:

$builder->createOneToMany(...)->setOrderBy(['position' => 'ASC']);

result

Parameter #1 $fieldNames of method Doctrine\ORM\Mapping\Builder\OneToManyAssociationBuilder::setOrderBy() expects array<int, string>, array<string, string> given.
**Original Pull Request:** https://github.com/doctrine/orm/pull/8604 **State:** closed **Merged:** Yes --- Fix psalm/phpstan error code: ```php $builder->createOneToMany(...)->setOrderBy(['position' => 'ASC']); ``` result ```bash Parameter #1 $fieldNames of method Doctrine\ORM\Mapping\Builder\OneToManyAssociationBuilder::setOrderBy() expects array<int, string>, array<string, string> given. ```
admin added the pull-request label 2026-01-22 16:09:40 +01:00
admin closed this issue 2026-01-22 16:09:40 +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#11084