File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ import (
44 "github.com/trim21/go-phpserialize/internal/encoder"
55)
66
7+ // make sure they are equal
8+ var _ Marshaler = encoder .Marshaler (nil )
9+ var _ encoder.Marshaler = Marshaler (nil )
10+
711// Marshaler allow users to implement its own encoder.
812// **it's return value will not be validated**, please make sure you return valid encoded bytes.
913type Marshaler interface {
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import (
1010 "github.com/trim21/go-phpserialize/internal/errors"
1111)
1212
13+ // make sure they are equal
14+ var _ Unmarshaler = decoder .Unmarshaler (nil )
15+ var _ decoder.Unmarshaler = Unmarshaler (nil )
16+
1317type Unmarshaler interface {
1418 UnmarshalPHP ([]byte ) error
1519}
You can’t perform that action at this time.
0 commit comments