Skip to content

Commit 3b6bd8d

Browse files
committed
fix: Failing tests
1 parent e60f0d3 commit 3b6bd8d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Serializer/Registry/Cache/MemoizingTypeAdapterRegistry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
final class MemoizingTypeAdapterRegistry implements TypeAdapterRegistry
1616
{
17-
/** @var array<class-string, array<string, WeakMap<object, array<int, array{ object[], TypeAdapter<mixed, mixed> }>>>> */
17+
/** @var array<class-string, array<string, WeakMap<object, array<int, array{ Attributes, TypeAdapter<mixed, mixed> }>>>> */
1818
private array $resolved = [];
1919

2020
public function __construct(
@@ -35,7 +35,7 @@ public function forType(string $typeAdapterType, Serializer $serializer, Type $t
3535

3636
$matchingFactories = $this->resolved[$typeAdapterType][(string) $type][$skipPast ?? $serializer] ??= [];
3737

38-
/** @var array{ object[], TypeAdapter<mixed, mixed> }|null $attributesFactoryPair */
38+
/** @var array{ Attributes, TypeAdapter<mixed, mixed> }|null $attributesFactoryPair */
3939
$attributesFactoryPair = Arr::first($matchingFactories, fn (array $pair) => $attributes->allEqual($pair[0]));
4040

4141
if ($attributesFactoryPair) {

src/Serializer/Registry/Factory/FactoryTypeAdapterRegistry.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function forType(string $typeAdapterType, Serializer $serializer, Type $t
5050
$factory = $this->factories[$i];
5151

5252
if ($adapter = $factory->create($typeAdapterType, $type, $attributes, $serializer)) {
53+
/* @phpstan-ignore-next-line */
5354
Assert::isInstanceOf($adapter, $typeAdapterType);
5455

5556
/** @var TypeAdapterType */

0 commit comments

Comments
 (0)