Skip to content

Commit 7dc9ea3

Browse files
authored
style: various cs fixes (#6504)
* cs: fixes * chore: phpstan fixes
1 parent 67d4f44 commit 7dc9ea3

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
@@ -114,7 +114,7 @@ public function supportsDenormalization(mixed $data, string $type, ?string $form
114114
*/
115115
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): never
116116
{
117-
throw new LogicException(sprintf('%s is a read-only format.', self::FORMAT));
117+
throw new LogicException(\sprintf('%s is a read-only format.', self::FORMAT));
118118
}
119119

120120
/**
@@ -305,7 +305,7 @@ private function isMaxDepthReached(array $attributesMetadata, string $class, str
305305
return false;
306306
}
307307

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

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)