Skip to content

Commit b43b4ae

Browse files
committed
chore: interfaces as return types
1 parent 6a35604 commit b43b4ae

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/Binary.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,12 @@
66

77
final class Binary
88
{
9-
/**
10-
* @see EncoderInterface
11-
*/
12-
public static function encode(string $data): Encoder
9+
public static function encode(string $data): EncoderInterface
1310
{
1411
return new Encoder($data);
1512
}
1613

17-
/**
18-
* @see DecoderInterface
19-
*/
20-
public static function decode(string $data): Decoder
14+
public static function decode(string $data): DecoderInterface
2115
{
2216
return new Decoder($data);
2317
}

0 commit comments

Comments
 (0)