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
* 6.4:
[Console] Table counts wrong column width when using colspan and `setColumnMaxWidth()`
[Console] Table counts wrong number of padding symbols in `renderCell()` method when cell contain unicode variant selector
[Cache] Fix using a `ChainAdapter` as an adapter for a pool
[Serializer] Fix collect_denormalization_errors flag in defaultContext
[VarDumper] Avoid deprecated call in PgSqlCaster
Fix command option mode (InputOption::VALUE_REQUIRED)
[Uid] Improve entropy of the increment for UUIDv7
Copy file name to clipboardExpand all lines: Serializer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
213
213
thrownewNotNormalizableValueException(\sprintf('Could not denormalize object of type "%s", no supporting normalizer found.', $type));
214
214
}
215
215
216
-
if (isset($context[DenormalizerInterface::COLLECT_DENORMALIZATION_ERRORS]) || isset($this->defaultContext[DenormalizerInterface::COLLECT_DENORMALIZATION_ERRORS])) {
216
+
if ((isset($context[DenormalizerInterface::COLLECT_DENORMALIZATION_ERRORS]) || isset($this->defaultContext[DenormalizerInterface::COLLECT_DENORMALIZATION_ERRORS])) && !isset($context['not_normalizable_value_exceptions'])) {
'message' => 'Failed to create object because the class misses the "bar" property.',
1738
+
],
1739
+
[
1740
+
'currentType' => 'string',
1741
+
'expectedTypes' => ['string'],
1742
+
'path' => 'date',
1743
+
'useMessageForUser' => true,
1744
+
'message' => 'The data is either not an string, an empty string, or null; you should pass a string that can be parsed with the passed format or a valid DateTime string.',
1745
+
],
1746
+
];
1747
+
1748
+
$this->assertSame($expected, $exceptionsAsArray);
1749
+
}
1750
+
}
1703
1751
}
1704
1752
1705
1753
class Model
@@ -1766,6 +1814,15 @@ public function __construct($value)
0 commit comments