Movatterモバイル変換


[0]ホーム

URL:


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

Commitc848f88

Browse files
committed
minor#18584 [Serializer] Remove dead code (theofidry)
This PR was merged into the 2.7 branch.Discussion----------[Serializer] Remove dead code| Q | A| ------------- | ---| Branch? | 2.7+| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | none| License | MIT| Doc PR | noneThe deleted lines are the exact equivalent of L249-251. It looks like this is due from a bad merged when the (de)normalization cache has been removed.Commits-------31c530a Remove dead code
2 parents44efeaa +31c530a commitc848f88

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,6 @@ private function denormalizeObject($data, $class, $format, array $context = arra
250250
return$normalizer->denormalize($data,$class,$format,$context);
251251
}
252252

253-
foreach ($this->normalizersas$normalizer) {
254-
if (
255-
$normalizerinstanceof DenormalizerInterface &&
256-
$normalizer->supportsDenormalization($data,$class,$format)
257-
) {
258-
return$normalizer->denormalize($data,$class,$format,$context);
259-
}
260-
}
261-
262253
thrownewUnexpectedValueException(sprintf('Could not denormalize object of type %s, no supporting normalizer found.',$class));
263254
}
264255

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp