Skip to content

Commit 436ee25

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

5 files changed

+6
-6
lines changed

stubs/ContextAwareDenormalizerInterface.stub

+1-1
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

+1-1
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

+2-2
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

+1-1
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

+1-1
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)