Problem/Motivation
In CommentNameConstraintValidator, EntityTestCompositeConstraintValidator and EntityTestEntityLevelValidator there is the following declaration:
/**
* Validator 2.5 and upwards compatible execution context.
*
* @var \Symfony\Component\Validator\Context\ExecutionContextInterface
*/
protected $context;
The parent property is correctly typed already. Symfony 7 adds an actual typehint here, which causes type issues.
Steps to reproduce
Proposed resolution
Remove the property and rely on the parent class.