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