Skip to content

Commit 1b01335

Browse files
committed
(fix): missing DenormalizerInterface
1 parent ce709cb commit 1b01335

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

extension.neon

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ parameters:
1212
- stubs/ContextAwareNormalizerInterface.stub
1313
- stubs/DecoderInterface.stub
1414
- stubs/DenormalizableInterface.stub
15+
- stubs/DenormalizerInterface.stub
1516
- stubs/EncoderInterface.stub
1617
- stubs/EventSubscriberInterface.stub
1718
- stubs/ExtensionInterface.stub

stubs/DenormalizableInterface.stub

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ interface DenormalizableInterface
1212
*
1313
* @return object|object[]
1414
*/
15-
public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = []);
15+
public function denormalize($denormalizer, $data, $format = null, array $context = []);
1616
}

stubs/DenormalizerInterface.stub

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace Symfony\Component\Serializer\Normalizer;
4+
5+
interface DenormalizerInterface
6+
{
7+
/**
8+
* @param mixed $data
9+
* @param string $type
10+
* @param string $format
11+
* @param array<mixed> $context
12+
* @return object|array<mixed>
13+
*/
14+
public function denormalize($data, $type, $format = null, array $context = []);
15+
16+
/**
17+
* @param mixed $data
18+
* @param string $type
19+
* @param string $format
20+
* @return bool
21+
*/
22+
public function supportsDenormalization($data, $type, $format = null);
23+
}

0 commit comments

Comments
 (0)