Skip to content

Commit 7250419

Browse files
committed
Merge 3.3
2 parents bb1a268 + 7dc9ea3 commit 7250419

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Serializer/ItemNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function supportsDenormalization(mixed $data, string $type, ?string $form
113113
*/
114114
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): never
115115
{
116-
throw new LogicException(sprintf('%s is a read-only format.', self::FORMAT));
116+
throw new LogicException(\sprintf('%s is a read-only format.', self::FORMAT));
117117
}
118118

119119
/**
@@ -304,7 +304,7 @@ private function isMaxDepthReached(array $attributesMetadata, string $class, str
304304
return false;
305305
}
306306

307-
$key = sprintf(self::DEPTH_KEY_PATTERN, $class, $attribute);
307+
$key = \sprintf(self::DEPTH_KEY_PATTERN, $class, $attribute);
308308
if (!isset($context[$key])) {
309309
$context[$key] = 1;
310310

Serializer/ObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ public function supportsDenormalization(mixed $data, string $type, ?string $form
117117
*/
118118
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed
119119
{
120-
throw new LogicException(sprintf('%s is a read-only format.', self::FORMAT));
120+
throw new LogicException(\sprintf('%s is a read-only format.', self::FORMAT));
121121
}
122122
}

0 commit comments

Comments
 (0)