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

Appearance settings

Commit 67277e5

Browse filesBrowse files
vudaltsovfabpot
authored andcommitted
[Serializer] Fixed serialize and denormalize return types
1 parent 7c31fa0 commit 67277e5
Copy full SHA for 67277e5

File tree

2 files changed

+2
-2
lines changed
Filter options

2 files changed

+2
-2
lines changed

‎src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface DenormalizerInterface
3232
* @param string $format Format the given data was extracted from
3333
* @param array $context Options available to the denormalizer
3434
*
35-
* @return object|array
35+
* @return mixed
3636
*
3737
* @throws BadMethodCallException Occurs when the normalizer is not called in an expected context
3838
* @throws InvalidArgumentException Occurs when the arguments are not coherent or not supported

‎src/Symfony/Component/Serializer/SerializerInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/SerializerInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function serialize($data, string $format, array $context = []);
3232
*
3333
* @param mixed $data
3434
*
35-
* @return object|array
35+
* @return mixed
3636
*/
3737
public function deserialize($data, string $type, string $format, array $context = []);
3838
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.