Skip to content

Commit 2207980

Browse files
committed
Add missed arguments and methods to serializer stubs
1 parent 436ee25 commit 2207980

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

stubs/ContextAwareDenormalizerInterface.stub

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ interface ContextAwareDenormalizerInterface extends DenormalizerInterface
66
{
77
/**
88
* @param mixed $data
9+
* @param string $type
910
* @param string|null $format
1011
* @param array<mixed> $context
1112
* @return bool

stubs/NormalizerInterface.stub

+7
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,11 @@ interface NormalizerInterface
1111
* @return array<mixed>|string|int|float|bool|null
1212
*/
1313
public function normalize($object, $format = null, array $context = []);
14+
15+
/**
16+
* @param mixed $data
17+
* @param string|null $format
18+
* @return bool
19+
*/
20+
public function supportsNormalization($data, string $format = null);
1421
}

0 commit comments

Comments
 (0)