Skip to content

Commit 0d7914d

Browse files
committed
Suppress psalm ImplicitToStringCast in from()
Encoders accept string|Element in from() by design, but the Iso generic is typed as Iso<mixed, string>.
1 parent 0b2ef0c commit 0d7914d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Encoder/XsiTypeEncoder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ private function from(Context $context, Iso $innerIso, Element $value): mixed
6464
->unwrapOr($innerIso),
6565
};
6666

67+
/** @psalm-suppress ImplicitToStringCast - Encoders accept string|Element in from() */
6768
return $iso->from($value);
6869
}
6970
}

0 commit comments

Comments
 (0)