From 45a808fab124f2246b8e3cec82b5bc8734a9a2e0 Mon Sep 17 00:00:00 2001 From: Stuart McGill Date: Wed, 4 Feb 2026 20:15:50 +0000 Subject: [PATCH 1/2] Allow null shikonaEn This seems to be bug in the API? --- src/Model/Rikishi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Rikishi.php b/src/Model/Rikishi.php index 89bdec5..1095adf 100644 --- a/src/Model/Rikishi.php +++ b/src/Model/Rikishi.php @@ -10,7 +10,7 @@ { public function __construct( public int $id, - public string $shikonaEn, + public ?string $shikonaEn, public ?int $sumoDbId, public ?int $nskId, public ?string $shikonaJp, From 688483964a3a8e3141e5daaf2c4acb7aa8a8d30e Mon Sep 17 00:00:00 2001 From: Stuart McGill Date: Wed, 4 Feb 2026 20:18:30 +0000 Subject: [PATCH 2/2] Add null coalesce to shikonaEn --- src/Factory/RikishiFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Factory/RikishiFactory.php b/src/Factory/RikishiFactory.php index 878c25e..ca0b836 100644 --- a/src/Factory/RikishiFactory.php +++ b/src/Factory/RikishiFactory.php @@ -14,7 +14,7 @@ public function build(stdClass $rikishiData): Rikishi { return new Rikishi( $rikishiData->id, - $rikishiData->shikonaEn, + $rikishiData->shikonaEn ?? null, $rikishiData->sumodbId ?? null, $rikishiData->nskId ?? null, $rikishiData->shikonaJp ?? null,