File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,13 @@ interface EncodersRegistryInterface
10
10
{
11
11
public function register (EncoderInterface $ encoder ): void ;
12
12
13
- /** @return EncoderInterface[] */
13
+ /**
14
+ * @return EncoderInterface[]
15
+ */
14
16
public function all (): array ;
15
17
16
- /** @psalm-param class-string<EncoderInterface> $className */
18
+ /**
19
+ * @phpstan-param class-string<EncoderInterface> $className
20
+ */
17
21
public function has (string $ className ): bool ;
18
22
}
Original file line number Diff line number Diff line change 14
14
15
15
class EncodersRegistry implements EncodersRegistryInterface
16
16
{
17
- /** @var array<class-string, EncoderInterface> */
17
+ /**
18
+ * @var array<class-string, EncoderInterface>
19
+ */
18
20
private array $ encoders = [];
19
21
20
22
/**
@@ -47,7 +49,7 @@ public function all(): array
47
49
}
48
50
49
51
/**
50
- * @psalm -param class-string<EncoderInterface> $className
52
+ * @phpstan -param class-string<EncoderInterface> $className
51
53
*/
52
54
public function has (string $ className ): bool
53
55
{
Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ public function all(): array
69
69
return array_column ($ this ->normalizers , 'normalizer ' );
70
70
}
71
71
72
- /** @psalm-param class-string $className */
72
+ /**
73
+ * @phpstan-param class-string $className
74
+ */
73
75
public function has (string $ className ): bool
74
76
{
75
77
return isset ($ this ->normalizers [$ className ]);
Original file line number Diff line number Diff line change 10
10
11
11
class SerializerRegistry implements SerializerRegistryInterface
12
12
{
13
- /** @var SerializerInterface[] */
13
+ /**
14
+ * @var SerializerInterface[]
15
+ */
14
16
private array $ serializers = [];
15
17
16
18
public function __construct (array $ serializers = [])
You can’t perform that action at this time.
0 commit comments