Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 504ddb9

Browse files
author
Julien Schermann
committed
🐛 fix: UNDO $denormalizable instead of $normalizable
1 parent e355a87 commit 504ddb9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/AirtableClient.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
use Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationExtension;
88
use Symfony\Component\Form\FormInterface;
99
use Symfony\Component\Form\Forms;
10-
use Symfony\Component\Serializer\Normalizer\DenormalizableInterface;
10+
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
1111

1212
final class AirtableClient implements AirtableClientInterface
1313
{
1414
private AirtableTransportInterface $airtableTransport;
15-
private DenormalizableInterface $denormalizable;
15+
private NormalizerInterface $normalizer;
1616

1717
public function __construct(
1818
AirtableTransportInterface $airtableTransport,
19-
DenormalizableInterface $denormalizable,
19+
NormalizerInterface $normalizer
2020
) {
2121
$this->airtableTransport = $airtableTransport;
22-
$this->denormalizable = $denormalizable;
22+
$this->normalizer = $normalizer;
2323
}
2424

2525
/**
@@ -205,7 +205,7 @@ function (array $recordData) use ($dataClass): AirtableRecord {
205205
private function createRecordFromResponse(?string $dataClass, array $recordData)
206206
{
207207
if (null !== $dataClass) {
208-
$recordData['fields'] = $this->denormalizable->denormalize($recordData['fields'], $dataClass);
208+
$recordData['fields'] = $this->normalizer->denormalize($recordData['fields'], $dataClass);
209209

210210
return $recordData;
211211
}

0 commit comments

Comments
 (0)