From cbecea6bcf2563410cc2842c22e789ee6bf348c6 Mon Sep 17 00:00:00 2001 From: Nicky Gerritsen Date: Tue, 27 Feb 2024 19:10:01 +0100 Subject: [PATCH] When calculating external source warning, the entity ID might be null. --- webapp/src/Entity/ExternalSourceWarning.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/Entity/ExternalSourceWarning.php b/webapp/src/Entity/ExternalSourceWarning.php index 54453767839..b223b6277be 100644 --- a/webapp/src/Entity/ExternalSourceWarning.php +++ b/webapp/src/Entity/ExternalSourceWarning.php @@ -170,7 +170,7 @@ public function fillhash(): void $this->setHash(static::calculateHash($this->getType(), $this->getEntityType(), $this->getEntityId())); } - public static function calculateHash(string $type, string $entityType, string $enttiyId): string + public static function calculateHash(string $type, string $entityType, ?string $enttiyId): string { return "$entityType-$enttiyId-$type"; }