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
1010{
1111 public function register (EncoderInterface $ encoder ): void ;
1212
13- /** @return EncoderInterface[] */
13+ /**
14+ * @return EncoderInterface[]
15+ */
1416 public function all (): array ;
1517
16- /** @psalm-param class-string<EncoderInterface> $className */
18+ /**
19+ * @phpstan-param class-string<EncoderInterface> $className
20+ */
1721 public function has (string $ className ): bool ;
1822}
Original file line number Diff line number Diff line change 1414
1515class EncodersRegistry implements EncodersRegistryInterface
1616{
17- /** @var array<class-string, EncoderInterface> */
17+ /**
18+ * @var array<class-string, EncoderInterface>
19+ */
1820 private array $ encoders = [];
1921
2022 /**
@@ -47,7 +49,7 @@ public function all(): array
4749 }
4850
4951 /**
50- * @psalm -param class-string<EncoderInterface> $className
52+ * @phpstan -param class-string<EncoderInterface> $className
5153 */
5254 public function has (string $ className ): bool
5355 {
Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ public function all(): array
6969 return array_column ($ this ->normalizers , 'normalizer ' );
7070 }
7171
72- /** @psalm-param class-string $className */
72+ /**
73+ * @phpstan-param class-string $className
74+ */
7375 public function has (string $ className ): bool
7476 {
7577 return isset ($ this ->normalizers [$ className ]);
Original file line number Diff line number Diff line change 1010
1111class SerializerRegistry implements SerializerRegistryInterface
1212{
13- /** @var SerializerInterface[] */
13+ /**
14+ * @var SerializerInterface[]
15+ */
1416 private array $ serializers = [];
1517
1618 public function __construct (array $ serializers = [])
You can’t perform that action at this time.
0 commit comments