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
* 7.2:
-
[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
[TypeInfo] Fix handling `ConstFetchNode`
[VarDumper] Avoid deprecated call in PgSqlCaster
Fix command option mode (InputOption::VALUE_REQUIRED)
use an EOL-agnostic approach to parse class uses
[Uid] Improve entropy of the increment for UUIDv7
[HttpKernel] Fix `#[MapUploadedFile]` handling for optional file uploads
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.',
1752
+
],
1753
+
[
1754
+
'currentType' => 'string',
1755
+
'expectedTypes' => ['string'],
1756
+
'path' => 'date',
1757
+
'useMessageForUser' => true,
1758
+
'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.',
1759
+
],
1760
+
];
1761
+
1762
+
$this->assertSame($expected, $exceptionsAsArray);
1763
+
}
1764
+
}
1717
1765
}
1718
1766
1719
1767
class Model
@@ -1780,6 +1828,15 @@ public function __construct($value)
0 commit comments