Skip to content

Commit 75743a9

Browse files
committed
fix: Don't allow int in UnexpectedPolymorphicTypeException
1 parent f41c00d commit 75743a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TypeAdapter/Exception/UnexpectedPolymorphicTypeException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
class UnexpectedPolymorphicTypeException extends RuntimeException implements UnexpectedValueException
99
{
1010
/**
11-
* @param list<int|string> $expectedTypeNames
11+
* @param list<string> $expectedTypeNames
1212
*/
1313
public function __construct(
1414
public readonly string $typeNameField,
15-
public readonly string|int $value,
15+
public readonly string $value,
1616
public readonly array $expectedTypeNames,
1717
Throwable $previous = null
1818
) {

0 commit comments

Comments
 (0)