I changed as you wrote, but I didn't get the result. The phone number is still optional, despite the fact that the theme settings say to require a phone number when posting.
<?php if(strpos($required_fields, 'phone') !== false) { ?>
contactPhone: {
required: true,
minlength: 6
},