Skip to content

Commit

Permalink
Do not overwrite weight.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsegura committed Jan 17, 2025
1 parent a9db5f1 commit 960961f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Serializer/TaskNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public function normalize($object, $format = null, array $context = array())
];

$data['packages'] = [];
$data['weight'] = null;

if (!is_null($object->getPrefetchedPackagesAndWeight())) {
$data['packages'] = !is_null($object->getPrefetchedPackagesAndWeight()['packages']) ? $object->getPrefetchedPackagesAndWeight()['packages'] : [];
Expand Down

0 comments on commit 960961f

Please sign in to comment.