Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 76d75e3

Browse files
ossinkineondrejmirtes
authored andcommitted
Add missed arguments and methods to serializer stubs
1 parent 436ee25 commit 76d75e3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

‎stubs/ContextAwareDenormalizerInterface.stub‎

Lines changed: 1 addition & 0 deletions
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‎

Lines changed: 7 additions & 0 deletions
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, $format = null);
1421
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /