This repository was archived by the owner on Sep 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change 77use Symfony \Component \Form \Extension \HttpFoundation \HttpFoundationExtension ;
88use Symfony \Component \Form \FormInterface ;
99use Symfony \Component \Form \Forms ;
10- use Symfony \Component \Serializer \Normalizer \NormalizerInterface ;
10+ use Symfony \Component \Serializer \Normalizer \DenormalizableInterface ;
1111
1212final 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 }
You can’t perform that action at this time.
0 commit comments