Skip to content

Commit 78703a6

Browse files
CS fixes
1 parent 1e69e2f commit 78703a6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Context/Normalizer/AbstractNormalizerContextBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function withCircularReferenceHandler(?callable $circularReferenceHandler
158158
* Note: The behaviour for nested structures is different from ATTRIBUTES
159159
* for historical reason. Aligning the behaviour would be a BC break.
160160
*
161-
* @param list<string>|null $attributes
161+
* @param list<string>|null $ignoredAttributes
162162
*/
163163
public function withIgnoredAttributes(?array $ignoredAttributes): static
164164
{

Normalizer/AbstractNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ protected function handleCircularReference(object $object, string $format = null
205205
*
206206
* @param bool $attributesAsString If false, return an array of {@link AttributeMetadataInterface}
207207
*
208-
* @throws LogicException if the 'allow_extra_attributes' context variable is false and no class metadata factory is provided
209-
*
210208
* @return string[]|AttributeMetadataInterface[]|bool
209+
*
210+
* @throws LogicException if the 'allow_extra_attributes' context variable is false and no class metadata factory is provided
211211
*/
212212
protected function getAllowedAttributes(string|object $classOrObject, array $context, bool $attributesAsString = false)
213213
{

Normalizer/GetSetMethodNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class GetSetMethodNormalizer extends AbstractObjectNormalizer
4141
*/
4242
public function supportsNormalization(mixed $data, string $format = null /* , array $context = [] */): bool
4343
{
44-
return parent::supportsNormalization($data, $format) && $this->supports(\get_class($data));
44+
return parent::supportsNormalization($data, $format) && $this->supports($data::class);
4545
}
4646

4747
/**

0 commit comments

Comments
 (0)