Skip to content

Commit e8c92d8

Browse files
fix: Symfony 4.4.* compatibility
1 parent 71a1417 commit e8c92d8

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/GraphQl/Serializer/ItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function normalizeCollectionOfRelations(ApiProperty $propertyMetadata,
111111
/**
112112
* {@inheritdoc}
113113
*/
114-
public function supportsDenormalization($data, string $type, $format = null, array $context = []): bool
114+
public function supportsDenormalization($data, $type, $format = null, array $context = []): bool
115115
{
116116
return self::FORMAT === $format && parent::supportsDenormalization($data, $type, $format, $context);
117117
}

src/Hal/Serializer/ItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function normalize($object, $format = null, array $context = [])
9393
/**
9494
* {@inheritdoc}
9595
*/
96-
public function supportsDenormalization($data, string $type, $format = null, array $context = []): bool
96+
public function supportsDenormalization($data, $type, $format = null, array $context = []): bool
9797
{
9898
// prevent the use of lower priority normalizers (e.g. serializer.normalizer.object) for this format
9999
return self::FORMAT === $format;

src/JsonApi/Serializer/ItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function normalize($object, $format = null, array $context = [])
130130
/**
131131
* {@inheritdoc}
132132
*/
133-
public function supportsDenormalization($data, string $type, $format = null, array $context = []): bool
133+
public function supportsDenormalization($data, $type, $format = null, array $context = []): bool
134134
{
135135
return self::FORMAT === $format && parent::supportsDenormalization($data, $type, $format, $context);
136136
}

src/JsonLd/Serializer/ItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function normalize($object, $format = null, array $context = [])
121121
/**
122122
* {@inheritdoc}
123123
*/
124-
public function supportsDenormalization($data, string $type, $format = null, array $context = []): bool
124+
public function supportsDenormalization($data, $type, $format = null, array $context = []): bool
125125
{
126126
return self::FORMAT === $format && parent::supportsDenormalization($data, $type, $format, $context);
127127
}

src/Serializer/AbstractItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function normalize($object, $format = null, array $context = [])
168168
/**
169169
* {@inheritdoc}
170170
*/
171-
public function supportsDenormalization($data, string $type, $format = null, array $context = []): bool
171+
public function supportsDenormalization($data, $type, $format = null, array $context = []): bool
172172
{
173173
if (($context['input']['class'] ?? null) === $type) {
174174
return true;

0 commit comments

Comments
 (0)