Index: Classes/Persistence/Repository.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/Classes/Persistence/Repository.php b/Classes/Persistence/Repository.php --- a/Classes/Persistence/Repository.php +++ b/Classes/Persistence/Repository.php (date 1741764600623) @@ -281,6 +281,9 @@ $query = $this->createQuery(); $constraints = []; foreach ($criteria as $propertyName => $propertyValue) { + if (!is_string($propertyName)) { + throw new \Exception('Repository::findBy() expects an array with string keys as first argument. '); + } $constraints[] = $query->equals($propertyName, $propertyValue); }