public function getErrors(string $field) : array
    {
        $compiledErrors = [];

        foreach ($this->errorSlugsAndPlaceholders as $errorData) {
            $compiledErrors[] = $this->errorTemplateCompiler->compile(
                $field,
                $this->errorTemplateRegistry->getErrorTemplate($field, $errorData['slug']),
                $errorData['placeholders']
            );
        }

        return $compiledErrors;
    }