We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4f4a8 commit d567b4eCopy full SHA for d567b4e
src/Normalizers/RamseyUuidNormalizer.php
@@ -4,7 +4,6 @@
4
5
namespace WayOfDev\Serializer\Normalizers;
6
7
-use ArrayObject;
8
use InvalidArgumentException;
9
use Override;
10
use Ramsey\Uuid\Uuid;
@@ -20,13 +19,12 @@
20
19
final class RamseyUuidNormalizer implements NormalizerInterface, DenormalizerInterface
21
{
22
/**
23
- * @param mixed $data
24
* @param array<array-key, mixed> $context
25
*/
26
#[Override]
27
public function normalize(mixed $data, ?string $format = null, array $context = []): string
28
29
- if (!$data instanceof UuidInterface) {
+ if (! $data instanceof UuidInterface) {
30
throw new NotNormalizableValueException('Expected UuidInterface instance');
31
}
32
0 commit comments