mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 18:13:48 +00:00
DX: fix some phpstan issues and add test for ParticipationOverlapValidator.php
This commit is contained in:
@@ -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))'));
|
||||
|
Reference in New Issue
Block a user