src/Configurator.php
public function setReportError(string $reportError): void
    {
        if (!\in_array($reportError, ['silent', 'exception'], true)) {
            throw new DatabaseException('The report error "' . $reportError . '" is incorrect. (silent , exception)');
        }

        $this->reportError = $reportError;
    }
public function setReportError(string $reportError): void
    {
        if (!\in_array($reportError, ['silent', 'exception'], true)) {
            throw new DatabaseException('The report error "' . $reportError . '" is incorrect. (silent , exception)');
        }

        $this->reportError = $reportError;
    }
@param string $reportError

@throws DatabaseException