/** * @param $customType string * @param null|string $stringValue * @return Result */ public function addCustomError($customType, $stringValue = null) { return $this->addError($this->errorBuilder->custom($customType, $stringValue)); }