[PR #7225] Fixed typehint #10385

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

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

State: closed
Merged: No


When calling EntityNotFoundException::fromClassNameAndIdentifier(Entity::class, ['name' => 3]); then phpstan -l max issues an error

Doctrine\ORM\EntityNotFoundException::fromClassNameAndIdentifier()  
         expects array<string>, array<string, int> given.

The implementation is obviously done right as an associative array is expected instead of an index one.

**Original Pull Request:** https://github.com/doctrine/orm/pull/7225 **State:** closed **Merged:** No --- When calling `EntityNotFoundException::fromClassNameAndIdentifier(Entity::class, ['name' => 3]);` then `phpstan -l max` issues an error ``` Doctrine\ORM\EntityNotFoundException::fromClassNameAndIdentifier() expects array<string>, array<string, int> given. ``` The implementation is obviously done right as an associative array is expected instead of an index one.
admin added the pull-request label 2026-01-22 16:07:21 +01:00
admin closed this issue 2026-01-22 16:07:22 +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#10385