Skip to content

Commit 0b2ef0c

Browse files
committed
Add psalm param annotations for Iso generics
1 parent 0cf3ef4 commit 0b2ef0c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Encoder/XsiTypeEncoder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ function (string|Element $value) use ($context, $innerIso) : mixed {
4141
);
4242
}
4343

44+
/**
45+
* @param Iso<mixed, string> $innerIso
46+
*/
4447
private function to(Iso $innerIso, mixed $value): string
4548
{
4649
// There is no way to know what xsi:type to use when encoding any type.
@@ -49,6 +52,9 @@ private function to(Iso $innerIso, mixed $value): string
4952
return $innerIso->to($value);
5053
}
5154

55+
/**
56+
* @param Iso<mixed, string> $innerIso
57+
*/
5258
private function from(Context $context, Iso $innerIso, Element $value): mixed
5359
{
5460
$iso = match (true) {

0 commit comments

Comments
 (0)