From 34a89a738bbcb3c9c00665983e6ffc078c6b1eb6 Mon Sep 17 00:00:00 2001 From: Philip Gichuhi Date: Tue, 21 Mar 2023 12:01:37 +0300 Subject: [PATCH] Fix PHPStan failure --- src/JsonParseNode.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/JsonParseNode.php b/src/JsonParseNode.php index 0bad4c8..cfc9a7c 100644 --- a/src/JsonParseNode.php +++ b/src/JsonParseNode.php @@ -104,7 +104,6 @@ public function getObjectValue(array $type): ?Parsable { if (!is_callable($type, true, $callableString)) { throw new InvalidArgumentException('Undefined method '. $type[1]); } - /** @var Parsable $result */ $result = $callableString($this); if($this->getOnBeforeAssignFieldValues() !== null) { $this->getOnBeforeAssignFieldValues()($result);