You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADE-8.1.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,8 @@ Serializer
127
127
----------
128
128
129
129
* Deprecate datetime constructor as a fallback, in version 9.0 a `Symfony\Component\Serializer\Exception\NotNormalizableValueException` will be thrown when a date could not be parsed using the default format
130
+
* Change the signature of `PartialDenormalizationException::__construct($data, array $errors)` to `__construct(mixed $data, array $notNormalizableErrors, array $extraAttributesErrors = [])`
131
+
* Deprecate `PartialDenormalizationException::getErrors()`, use `getNotNormalizableValueErrors()` instead
@@ -31,10 +42,25 @@ public function getData(): mixed
31
42
}
32
43
33
44
/**
34
-
* @return NotNormalizableValueException[]
45
+
* @deprecated since Symfony 8.1, use getNotNormalizableValueErrors() instead
35
46
*/
36
47
publicfunctiongetErrors(): array
37
48
{
38
-
return$this->errors;
49
+
trigger_deprecation('symfony/serializer', '8.1', 'The "%s()" method is deprecated, use "%s::getNotNormalizableValueErrors()" instead.', __METHOD__, self::class);
0 commit comments