From ea60c6bc87557f0629409f2b88fe9d6fef7625c7 Mon Sep 17 00:00:00 2001 From: Boris Waaub Date: Tue, 3 Mar 2026 11:13:15 +0100 Subject: [PATCH] FIX: PHPStan --- .../Actions/Upsert/Handler/PersonUpsertHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Actions/Upsert/Handler/PersonUpsertHandler.php b/src/Bundle/ChillPersonBundle/Actions/Upsert/Handler/PersonUpsertHandler.php index d073e7ca9..5d938e1d2 100644 --- a/src/Bundle/ChillPersonBundle/Actions/Upsert/Handler/PersonUpsertHandler.php +++ b/src/Bundle/ChillPersonBundle/Actions/Upsert/Handler/PersonUpsertHandler.php @@ -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); }