This message should be improved too. Remember that the property path can have multiple elements, such as "article.author[name]". Suggestion:

```
throw new ConstraintDefinitionException(sprintf(
    'The property path "%s" defined in the %s constraint%s could not be resolved.',
    $constraint->property,
    get_class($constraint),
    null !== $this->getCurrentProperty()
        ? sprintf(' on %s::$%s', $this->context->getCurrentClass(), $this->context->getCurrentProperty())
        : ''
));
```