From dab4651991bd3a4d41c00a3987164372ce12454c Mon Sep 17 00:00:00 2001 From: Matthias Devlamynck Date: Wed, 30 Aug 2023 14:14:00 +0200 Subject: [PATCH] Fix too restrictive type annotation --- src/Domain/Port/TemplatingInterface.php | 2 +- src/Infrastructure/Adapter/TemplatingAdapter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Domain/Port/TemplatingInterface.php b/src/Domain/Port/TemplatingInterface.php index 6817793..a0c05b5 100644 --- a/src/Domain/Port/TemplatingInterface.php +++ b/src/Domain/Port/TemplatingInterface.php @@ -6,6 +6,6 @@ interface TemplatingInterface { - /** @param array $context */ + /** @param array $context */ public function render(string $name, array $context = []): string; } diff --git a/src/Infrastructure/Adapter/TemplatingAdapter.php b/src/Infrastructure/Adapter/TemplatingAdapter.php index 876f9b1..b222f23 100644 --- a/src/Infrastructure/Adapter/TemplatingAdapter.php +++ b/src/Infrastructure/Adapter/TemplatingAdapter.php @@ -13,7 +13,7 @@ class TemplatingAdapter implements TemplatingInterface #[Required] public Environment $twig; - /** @param array $context */ + /** @param array $context */ public function render(string $name, array $context = []): string { return $this->twig->render($name, $context);