Skip to content

Commit e30fda7

Browse files
committed
style: fix docblock comments
1 parent 675062b commit e30fda7

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

src/Contracts/EncodersRegistryInterface.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/EncodersRegistry.php

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

1515
class 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
{

src/NormalizersRegistry.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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]);

src/SerializerRegistry.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
class SerializerRegistry implements SerializerRegistryInterface
1212
{
13-
/** @var SerializerInterface[] */
13+
/**
14+
* @var SerializerInterface[]
15+
*/
1416
private array $serializers = [];
1517

1618
public function __construct(array $serializers = [])

0 commit comments

Comments
 (0)