From f6c5ec9798ae46992e43d9d29051e6c45d2477c5 Mon Sep 17 00:00:00 2001 From: Joona Melartin Date: Fri, 22 May 2026 14:27:45 +0300 Subject: [PATCH] KUSTOM-92: Improved type safety with some of the properties in logger data container, since the properties can be actually null --- Model/Api/Container.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Model/Api/Container.php b/Model/Api/Container.php index 483c62d..f6c66b4 100644 --- a/Model/Api/Container.php +++ b/Model/Api/Container.php @@ -57,7 +57,7 @@ class Container */ public function getUrl(): string { - return $this->url; + return (string) $this->url; } /** @@ -77,7 +77,7 @@ public function setUrl(string $url): void */ public function getMethod(): string { - return $this->method; + return (string) $this->method; } /** @@ -97,7 +97,7 @@ public function setMethod(string $method): void */ public function getAction(): string { - return $this->action; + return (string) $this->action; } /** @@ -177,7 +177,7 @@ public function setKlarnaId(?string $klarnaId): void */ public function getService(): string { - return $this->service; + return (string) $this->service; } /**