Skip to content

Commit 2fed72f

Browse files
committed
sync .github/expected-missing-return-types.diff
1 parent 6ff1223 commit 2fed72f

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

.github/expected-missing-return-types.diff

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11632,6 +11632,13 @@ diff --git a/src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.
1163211632
+ protected function setAttributeValue(object $object, string $attribute, mixed $value, ?string $format = null, array $context = []): void
1163311633
{
1163411634
$setter = 'set'.ucfirst($attribute);
11635+
@@ -182,5 +182,5 @@ class GetSetMethodNormalizer extends AbstractObjectNormalizer
11636+
}
11637+
11638+
- protected function isAllowedAttribute($classOrObject, string $attribute, ?string $format = null, array $context = [])
11639+
+ protected function isAllowedAttribute($classOrObject, string $attribute, ?string $format = null, array $context = []): bool
11640+
{
11641+
if (!parent::isAllowedAttribute($classOrObject, $attribute, $format, $context)) {
1163511642
diff --git a/src/Symfony/Component/Serializer/Normalizer/NormalizerAwareInterface.php b/src/Symfony/Component/Serializer/Normalizer/NormalizerAwareInterface.php
1163611643
--- a/src/Symfony/Component/Serializer/Normalizer/NormalizerAwareInterface.php
1163711644
+++ b/src/Symfony/Component/Serializer/Normalizer/NormalizerAwareInterface.php
@@ -11678,6 +11685,13 @@ diff --git a/src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php b/
1167811685
+ protected function setAttributeValue(object $object, string $attribute, mixed $value, ?string $format = null, array $context = []): void
1167911686
{
1168011687
try {
11688+
@@ -189,5 +189,5 @@ class ObjectNormalizer extends AbstractObjectNormalizer
11689+
}
11690+
11691+
- protected function isAllowedAttribute($classOrObject, string $attribute, ?string $format = null, array $context = [])
11692+
+ protected function isAllowedAttribute($classOrObject, string $attribute, ?string $format = null, array $context = []): bool
11693+
{
11694+
$ignoredAttributes = $context[self::IGNORED_ATTRIBUTES] ?? $this->defaultContext[self::IGNORED_ATTRIBUTES];
1168111695
diff --git a/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
1168211696
--- a/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php
1168311697
+++ b/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php

src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ protected function getGroups(array $context): array
268268
/**
269269
* Is this attribute allowed?
270270
*/
271-
protected function isAllowedAttribute(object|string $classOrObject, string $attribute, ?string $format = null, array $context = []): bool
271+
protected function isAllowedAttribute(object|string $classOrObject, string $attribute, ?string $format = null, array $context = [])
272272
{
273273
$ignoredAttributes = $context[self::IGNORED_ATTRIBUTES] ?? $this->defaultContext[self::IGNORED_ATTRIBUTES];
274274
if (\in_array($attribute, $ignoredAttributes)) {

src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ protected function setAttributeValue(object $object, string $attribute, mixed $v
179179
}
180180
}
181181

182-
protected function isAllowedAttribute($classOrObject, string $attribute, ?string $format = null, array $context = []): bool
182+
protected function isAllowedAttribute($classOrObject, string $attribute, ?string $format = null, array $context = [])
183183
{
184184
if (!parent::isAllowedAttribute($classOrObject, $attribute, $format, $context)) {
185185
return false;

src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ protected function getAllowedAttributes(string|object $classOrObject, array $con
186186
return $allowedAttributes;
187187
}
188188

189-
protected function isAllowedAttribute($classOrObject, string $attribute, ?string $format = null, array $context = []): bool
189+
protected function isAllowedAttribute($classOrObject, string $attribute, ?string $format = null, array $context = [])
190190
{
191191
if (!parent::isAllowedAttribute($classOrObject, $attribute, $format, $context)) {
192192
return false;

0 commit comments

Comments
 (0)