mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Error handling when misuse of find() with array values #7312
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?
Originally created by @symfonyaml on GitHub (Feb 7, 2024).
Bug Report
Summary
Misuse of
$em->find(...)with array as identifier.Current behavior
How to reproduce
doctrine/ormandsymfony/cacherepostest.phpto throw the errorreproduce.phpPHP Warning: Array to string conversionExpected behavior
It would be nice to get just an
UnexpectedValueExceptionexplaining the problem.