fix: 500 error in prod

│ {"message":"Uncaught PHP Exception TypeError: \"App\\Repository\\ConfigurationRepository::getServicesParameter(): Return value must be of type bool, null returned\" at ConfigurationRepository.php line 71","context":{"exception":{"class │
│ ":"TypeError","message":"App\\Repository\\ConfigurationRepository::getServicesParameter(): Return value must be of type bool, null returned","code":0,"file":"/srv/app/src/Repository/ConfigurationRepository.php:71"}},"level":500,"level_ │
│ name":"CRITICAL","channel":"request","datetime":"2024-10-28T10:38:49.791926+01:00","extra":{}}
This commit is contained in:
Slim Amamou 2024-10-28 11:36:14 +01:00
parent 35f22d9598
commit 7e50abfdb6

View file

@ -68,6 +68,6 @@ final class ConfigurationRepository extends ServiceEntityRepository
->setMaxResults(1) ->setMaxResults(1)
->getQuery()->getOneOrNullResult(); ->getQuery()->getOneOrNullResult();
return $config['configuration']['global']['globalServicesEnabled']; return $config['configuration']['global']['globalServicesEnabled'] ?? false;
} }
} }