DX: fix some phpstan issues and add test for ParticipationOverlapValidator.php

This commit is contained in:
2023-02-07 22:11:39 +01:00
parent 70871176fc
commit afd2235254
5 changed files with 118 additions and 4 deletions

View File

@@ -180,7 +180,7 @@ final class ThirdPartyRepository implements ObjectRepository
if (array_key_exists('name', $terms) || array_key_exists('_default', $terms)) {
$term = $terms['name'] ?? $terms['_default'];
if (empty($term)) {
if (null === $term || '' === $term) {
return;
}
$qb->andWhere($qb->expr()->like('UNACCENT(LOWER(tp.name))', 'UNACCENT(LOWER(:name))'));