Skip to content

Commit 356e8ee

Browse files
When calculating external source warning, the entity ID might be null.
1 parent 7570245 commit 356e8ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Entity/ExternalSourceWarning.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function fillhash(): void
170170
$this->setHash(static::calculateHash($this->getType(), $this->getEntityType(), $this->getEntityId()));
171171
}
172172

173-
public static function calculateHash(string $type, string $entityType, string $enttiyId): string
173+
public static function calculateHash(string $type, string $entityType, ?string $enttiyId): string
174174
{
175175
return "$entityType-$enttiyId-$type";
176176
}

0 commit comments

Comments
 (0)