-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] Fixed docblocks and parameter names #33186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -172,17 +172,17 @@ public function normalize($data, $format = null, array $context = []) | |||
* | |||
* @throws NotNormalizableValueException | |||
*/ | |||
public function denormalize($data, $type, $format = null, array $context = []) | |||
public function denormalize($data, $class, $format = null, array $context = []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 The parameter is called $class
in the interface. This change synchronizes the method signatures.
For the record, However, as even interfaces define the constant |
@dunglas We can also change |
Indeed, maybe should we use |
2aee03d
to
50701fe
Compare
Done. |
Thank you @derrabus. |
This PR was merged into the 3.4 branch. Discussion ---------- [Serializer] Fixed docblocks and parameter names | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32179 | License | MIT | Doc PR | N/A Backports from #33185. Commits ------- 50701fe [Serializer] Fixed docblocks and parameter names.
Backports from #33185.