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
fix(serializer): remove dead native-type guards in AbstractItemNormalizerTest
The #8393 nullable denormalization tests guarded on
method_exists(PropertyInfoExtractor::class, 'getType') with an unqualified
class (resolving to the test namespace), so they were always skipped and
PHPStan flagged the call as always-false. With the Symfony ^7.4 floor
native types are guaranteed; drop the guards so the tests actually run.
// What Symfony's DateTimeNormalizer throws for a value it cannot parse.
1253
1242
$normalizerException = NotNormalizableValueException::createForUnexpectedDataType('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.', false, ['string'], 'dummyDate', true);
1254
1243
@@ -1267,9 +1256,6 @@ public function testDenormalizeWrongTypedValueForNullableObjectPropertyPreserves
$normalizerException = NotNormalizableValueException::createForUnexpectedDataType('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.', false, ['string'], 'dummyDate', true);
0 commit comments