Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 655c00b commit 987e435Copy full SHA for 987e435
1 file changed
Tests/Normalizer/ObjectNormalizerTest.php
@@ -610,7 +610,7 @@ public function testTypeMismatchOnTypedPropertyIsCollectedAsDenormalizationError
610
$this->assertInstanceOf(NotNormalizableValueException::class, $error);
611
$this->assertSame('name', $error->getPath());
612
$this->assertSame('array', $error->getCurrentType());
613
- $this->assertSame(['string'], $error->getExpectedTypes());
+ $this->assertSame([class_exists(InvalidTypeException::class) ? 'string' : 'unknown'], $error->getExpectedTypes());
614
}
615
616
0 commit comments