Skip to content

Commit

Permalink
Fix parameter type issue in LaravelRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Jan 8, 2024
1 parent 192395f commit 04ea9b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/contracts/ZugferdVisualizerMarkupRendererContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public function templateExists(string $template): bool;
/**
* Render the HTML markup for the Zugferd document
*
* @param ZugferdVisualizerMarkupRendererContract $document
* @param string $template
* @param ZugferdDocumentReader $document
* @param string $template
* @return string
*/
public function render(ZugferdDocumentReader $document, string $template): string;
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/ZugferdVisualizerLaravelRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace horstoeko\zugferdvisualizer\renderer;

use horstoeko\zugferd\ZugferdDocument;
use horstoeko\zugferd\ZugferdDocumentReader;
use horstoeko\zugferdvisualizer\contracts\ZugferdVisualizerMarkupRendererContract;

/**
Expand Down Expand Up @@ -43,7 +43,7 @@ public function templateExists(string $template): bool
/**
* @inheritDoc
*/
public function render(ZugferdDocument $document, string $template): string
public function render(ZugferdDocumentReader $document, string $template): string
{
if (!function_exists("view")) {
return "";
Expand Down

0 comments on commit 04ea9b4

Please sign in to comment.