Skip to content

Commit

Permalink
changed jmsSerializer type from ArrayTransformerInterface to Serializ…
Browse files Browse the repository at this point in the history
…erInterface
  • Loading branch information
triongroup committed May 24, 2023
1 parent 90e5de2 commit f83e1ef
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ protected function prepareAddress(AddressInterface $address, string $type): arra

protected function getDetails(OrderInterface $order): array
{
$jsonSale = $this->jmsSerializer->toArray($order);
$jsonSale = json_decode($this->jmsSerializer->normalize($order, 'json'), true, 512, JSON_THROW_ON_ERROR);

Check failure on line 358 in src/CoreShop/Bundle/OrderBundle/Controller/OrderController.php

View workflow job for this annotation

GitHub Actions / ~10.5, PHP 8, Deps highest

Call to an undefined method Symfony\Component\Serializer\SerializerInterface::normalize().

Check failure on line 358 in src/CoreShop/Bundle/OrderBundle/Controller/OrderController.php

View workflow job for this annotation

GitHub Actions / ~10.5, PHP 8, Deps lowest

Call to an undefined method Symfony\Component\Serializer\SerializerInterface::normalize().

Check failure on line 358 in src/CoreShop/Bundle/OrderBundle/Controller/OrderController.php

View workflow job for this annotation

GitHub Actions / ~10.6, PHP 8, Deps lowest

Call to an undefined method Symfony\Component\Serializer\SerializerInterface::normalize().

Check failure on line 358 in src/CoreShop/Bundle/OrderBundle/Controller/OrderController.php

View workflow job for this annotation

GitHub Actions / ~10.5, PHP 8.1, Deps highest

Call to an undefined method Symfony\Component\Serializer\SerializerInterface::normalize().

$jsonSale['o_id'] = $order->getId();
$jsonSale['saleNumber'] = $order->getOrderNumber();
Expand Down Expand Up @@ -484,7 +484,7 @@ protected function getInvoices(OrderInterface $order): array
'cancel',
], false);

$data = $this->jmsSerializer->toArray($invoice);
$data = json_decode($this->jmsSerializer->normalize($invoice, 'json'), true, 512, JSON_THROW_ON_ERROR);

Check failure on line 487 in src/CoreShop/Bundle/OrderBundle/Controller/OrderController.php

View workflow job for this annotation

GitHub Actions / ~10.5, PHP 8, Deps highest

Call to an undefined method Symfony\Component\Serializer\SerializerInterface::normalize().

Check failure on line 487 in src/CoreShop/Bundle/OrderBundle/Controller/OrderController.php

View workflow job for this annotation

GitHub Actions / ~10.5, PHP 8, Deps lowest

Call to an undefined method Symfony\Component\Serializer\SerializerInterface::normalize().

Check failure on line 487 in src/CoreShop/Bundle/OrderBundle/Controller/OrderController.php

View workflow job for this annotation

GitHub Actions / ~10.6, PHP 8, Deps lowest

Call to an undefined method Symfony\Component\Serializer\SerializerInterface::normalize().

Check failure on line 487 in src/CoreShop/Bundle/OrderBundle/Controller/OrderController.php

View workflow job for this annotation

GitHub Actions / ~10.5, PHP 8.1, Deps highest

Call to an undefined method Symfony\Component\Serializer\SerializerInterface::normalize().

$data['stateInfo'] = $this->workflowStateManager->getStateInfo('coreshop_invoice', $invoice->getState(), false);
$data['transitions'] = $availableTransitions;
Expand All @@ -507,7 +507,7 @@ protected function getShipments(OrderInterface $order): array
'cancel',
], false);

$data = $this->jmsSerializer->toArray($shipment);
$data = json_decode($this->jmsSerializer->normalize($shipment, 'json'), true, 512, JSON_THROW_ON_ERROR);

Check failure on line 510 in src/CoreShop/Bundle/OrderBundle/Controller/OrderController.php

View workflow job for this annotation

GitHub Actions / ~10.5, PHP 8, Deps highest

Call to an undefined method Symfony\Component\Serializer\SerializerInterface::normalize().

Check failure on line 510 in src/CoreShop/Bundle/OrderBundle/Controller/OrderController.php

View workflow job for this annotation

GitHub Actions / ~10.5, PHP 8, Deps lowest

Call to an undefined method Symfony\Component\Serializer\SerializerInterface::normalize().

Check failure on line 510 in src/CoreShop/Bundle/OrderBundle/Controller/OrderController.php

View workflow job for this annotation

GitHub Actions / ~10.6, PHP 8, Deps lowest

Call to an undefined method Symfony\Component\Serializer\SerializerInterface::normalize().

Check failure on line 510 in src/CoreShop/Bundle/OrderBundle/Controller/OrderController.php

View workflow job for this annotation

GitHub Actions / ~10.5, PHP 8.1, Deps highest

Call to an undefined method Symfony\Component\Serializer\SerializerInterface::normalize().

$data['stateInfo'] = $this->workflowStateManager->getStateInfo('coreshop_shipment', $shipment->getState(), false);
$data['transitions'] = $availableTransitions;
Expand Down

0 comments on commit f83e1ef

Please sign in to comment.