From 5494d03ef1e8c8351b3cb9f375aeb6063f2322e6 Mon Sep 17 00:00:00 2001 From: mondrake Date: Sun, 21 Sep 2025 14:01:51 +0200 Subject: [PATCH] ignore phpstan error --- src/PelEntryShort.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PelEntryShort.php b/src/PelEntryShort.php index 60c8272b..31138cc5 100644 --- a/src/PelEntryShort.php +++ b/src/PelEntryShort.php @@ -360,6 +360,7 @@ public function getText(bool $brief = false): string } if (array_key_exists($this->tag, self::PEL_TAG_TRANSLATIONS)) { if (array_key_exists($this->value[0], self::PEL_TAG_TRANSLATIONS[$this->tag])) { + // @phpstan-ignore offsetAccess.notFound return Pel::tra(self::PEL_TAG_TRANSLATIONS[$this->tag][$this->value[0]]); } return (string) $this->value[0];