protected function addError($letter, $msg, $value = null) { if ($value !== null) { $value = var_export($value, 1); } $this->errors[$letter][] = sprintf($msg, $value); }