Skip to content

Commit

Permalink
When calculating external source warning, the entity ID might be null.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicky Gerritsen committed Feb 28, 2024
1 parent 46789dd commit cbecea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/Entity/ExternalSourceWarning.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit cbecea6

Please sign in to comment.