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

Commit e355a87

Browse files
author
Julien Schermann
committed
🐛 fix: CI with $denormalizable instead of $normalizable
1 parent e923de9 commit e355a87

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
"require-dev": {
3333
"ext-json": "*",
3434
"friendsofphp/php-cs-fixer": "^3.0",
35-
"phpstan/phpstan": "^0.12",
36-
"phpstan/phpstan-beberlei-assert": "^0.12",
37-
"phpstan/phpstan-deprecation-rules": "^0.12",
38-
"phpstan/phpstan-phpunit": "^0.12",
39-
"phpstan/phpstan-strict-rules": "^0.12",
35+
"phpstan/phpstan": "^1.0",
36+
"phpstan/phpstan-beberlei-assert": "^1.0",
37+
"phpstan/phpstan-deprecation-rules": "^1.0",
38+
"phpstan/phpstan-phpunit": "^1.0",
39+
"phpstan/phpstan-strict-rules": "^1.0",
4040
"symfony/framework-bundle": "^5.0|^6.0",
4141
"symfony/phpunit-bridge": "^5.0|^6.0"
4242
},

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\NormalizerInterface;
10+
use Symfony\Component\Serializer\Normalizer\DenormalizableInterface;
1111

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

1717
public function __construct(
1818
AirtableTransportInterface $airtableTransport,
19-
NormalizerInterface $normalizer
19+
DenormalizableInterface $denormalizable,
2020
) {
2121
$this->airtableTransport = $airtableTransport;
22-
$this->normalizer = $normalizer;
22+
$this->denormalizable = $denormalizable;
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->normalizer->denormalize($recordData['fields'], $dataClass);
208+
$recordData['fields'] = $this->denormalizable->denormalize($recordData['fields'], $dataClass);
209209

210210
return $recordData;
211211
}

0 commit comments

Comments
 (0)