diff --git a/src/ErrorMapper.php b/src/ErrorMapper.php index f31b928..f973e38 100644 --- a/src/ErrorMapper.php +++ b/src/ErrorMapper.php @@ -13,6 +13,10 @@ public function __construct( ) { } + /** + * @param array $errors + * @return array + */ public function mapErrors(array $errors): array { // De-mapping diff --git a/src/ErrorsRendererInterface.php b/src/ErrorsRendererInterface.php new file mode 100644 index 0000000..e481e84 --- /dev/null +++ b/src/ErrorsRendererInterface.php @@ -0,0 +1,16 @@ + $errors + */ + public function render(array $errors, mixed $context = null): ResponseInterface; +}