Update TraitValidator.php