From 577b841ee0ce7128ba2116158008e7bd64b0b372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 8 Apr 2023 22:57:07 +0200 Subject: [PATCH] Fixed TypeError on certain old ElementCreatedLogEntries Fixes issue #261 --- src/Entity/LogSystem/ElementCreatedLogEntry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } /**