/** * {@inheritDoc} */ public function isRequiredStringNotEmpty($value, $suppressException = true) { /* Clear the last error. */ $this->lastError = null; /* If valid just return true. */ if (Validator::isRequiredStringNotEmpty($value)) { return true; } /* Set the error message. */ $type = 'string' === gettype($value) ? 'empty string' : gettype($value); $this->lastError = sprintf('Expected string not empty, \'%s\' given.', $type); return $this->validationFailed($suppressException); }