diff --git a/src/Entity/LogSystem/ElementCreatedLogEntry.php b/src/Entity/LogSystem/ElementCreatedLogEntry.php index 2a327e73..c78e6df0 100644 --- a/src/Entity/LogSystem/ElementCreatedLogEntry.php +++ b/src/Entity/LogSystem/ElementCreatedLogEntry.php @@ -54,7 +54,7 @@ class ElementCreatedLogEntry extends AbstractLogEntry implements LogWithCommentI */ public function getCreationInstockValue(): ?string { - return $this->extra['i'] ?? null; + return isset($this->extra['i']) ? (string)$this->extra['i'] : null; } /**