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 436ee25

Browse files
ossinkineondrejmirtes
authored andcommitted
Fix serializer stubs
1 parent 0f59cce commit 436ee25

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

‎stubs/ContextAwareDenormalizerInterface.stub‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface ContextAwareDenormalizerInterface extends DenormalizerInterface
66
{
77
/**
88
* @param mixed $data
9-
* @param string $format
9+
* @param string|null $format
1010
* @param array<mixed> $context
1111
* @return bool
1212
*/

‎stubs/ContextAwareNormalizerInterface.stub‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface ContextAwareNormalizerInterface extends NormalizerInterface
66
{
77
/**
88
* @param mixed $data
9-
* @param string $format
9+
* @param string|null $format
1010
* @param array<mixed> $context
1111
* @return bool
1212
*/

‎stubs/DenormalizerInterface.stub‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface DenormalizerInterface
77
/**
88
* @param mixed $data
99
* @param string $type
10-
* @param string $format
10+
* @param string|null $format
1111
* @param array<mixed> $context
1212
* @return object|array<mixed>
1313
*/
@@ -16,7 +16,7 @@ interface DenormalizerInterface
1616
/**
1717
* @param mixed $data
1818
* @param string $type
19-
* @param string $format
19+
* @param string|null $format
2020
* @return bool
2121
*/
2222
public function supportsDenormalization($data, $type, $format = null);

‎stubs/EncoderInterface.stub‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface EncoderInterface
88
* @param mixed $data
99
* @param string $format
1010
* @param array<mixed> $context
11-
* @return string|int|float|bool
11+
* @return string
1212
*/
1313
public function encode($data, $format, array $context = []);
1414

‎stubs/NormalizerInterface.stub‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface NormalizerInterface
66
{
77
/**
88
* @param mixed $object
9-
* @param string $format
9+
* @param string|null $format
1010
* @param array<mixed> $context
1111
* @return array<mixed>|string|int|float|bool|null
1212
*/

0 commit comments

Comments
(0)

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