Skip to content

Commit 3bdbade

Browse files
committed
Update exception message
1 parent 184e574 commit 3bdbade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ObjectNormalizer extends AbstractNormalizer
3535
public function __construct(ClassMetadataFactoryInterface $classMetadataFactory = null, NameConverterInterface $nameConverter = null, PropertyAccessorInterface $propertyAccessor = null)
3636
{
3737
if (!class_exists('Symfony\Component\PropertyAccess\PropertyAccess')) {
38-
throw new RuntimeException('Unable to use ObjectNormalizer as the Symfony PropertyAcess component is not installed.');
38+
throw new RuntimeException('The ObjectNormalizer class requires the "PropertyAccess" component. Install "symfony/property-access" to use it.');
3939
}
4040

4141
parent::__construct($classMetadataFactory, $nameConverter);

0 commit comments

Comments
 (0)