src/Bridge/Symfony/Validator/Metadata/Property/ValidatorPropertyMetadataFactory.php
private function isRequired(Constraint $constraint): bool
    {
        foreach (self::REQUIRED_CONSTRAINTS as $requiredConstraint) {
            if ($constraint instanceof $requiredConstraint) {
                return true;
            }
        }

        return false;
    }
private function isRequired(Constraint $constraint): bool
    {
        foreach (self::REQUIRED_CONSTRAINTS as $requiredConstraint) {
            if ($constraint instanceof $requiredConstraint) {
                return true;
            }
        }

        return false;
    }
private function isRequired ( Constraint $ constraint ) : bool { foreach ( self :: REQUIRED_CONSTRAINTS as $ requiredConstraint ) { if ( $ constraint instanceof $ requiredConstraint ) { return true ; } } return false ; }
Is this constraint making the related property required?
Is this constraint making the related property required?