FIX: PHPStan

This commit is contained in:
Boris Waaub
2026-03-03 11:13:15 +01:00
parent 17cbce06e2
commit ea60c6bc87

View File

@@ -44,7 +44,7 @@ readonly class PersonUpsertHandler
{
// 1. Retrieve definition
$definition = $this->personIdentifierDefinitionRepository->find($message->personIdentifierDefinitionId);
if (!$definition) {
if (null === $definition) {
throw new \RuntimeException('PersonIdentifierDefinition not found for id '.$message->personIdentifierDefinitionId);
}