Skip to content

Commit

Permalink
Fix too restrictive type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Devlamynck committed Aug 30, 2023
1 parent 26732da commit dab4651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Domain/Port/TemplatingInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

interface TemplatingInterface
{
/** @param array<string, string> $context */
/** @param array<string, mixed> $context */
public function render(string $name, array $context = []): string;
}
2 changes: 1 addition & 1 deletion src/Infrastructure/Adapter/TemplatingAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class TemplatingAdapter implements TemplatingInterface
#[Required]
public Environment $twig;

/** @param array<string, string> $context */
/** @param array<string, mixed> $context */
public function render(string $name, array $context = []): string
{
return $this->twig->render($name, $context);
Expand Down

0 comments on commit dab4651

Please sign in to comment.