Skip to content

Commit

Permalink
Merge pull request #5 from netiul/feature/allow-dompdf-v1
Browse files Browse the repository at this point in the history
Allow version 1 of Dompdf
  • Loading branch information
zluiten committed Jan 7, 2021
2 parents 0a51209 + c6240f7 commit 16d8e6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"laminas/laminas-i18n": "^2.11.0",
"laminas/laminas-http": "^2.14.2",
"laminas/laminas-console": "^2.8.0",
"dompdf/dompdf": "^0.8.0"
"dompdf/dompdf": "^0.8.0 | ^1.0.1"
},
"require-dev": {
"phpunit/phpunit": "^9.5.0",
Expand Down
4 changes: 2 additions & 2 deletions src/DOMPDFModule/View/Renderer/PdfRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ public function setResolver(Resolver $resolver): PdfRenderer
public function render($nameOrModel, $values = null): ?string
{
if (!($nameOrModel instanceof PdfModel)) {
throw new InvalidArgumentException(sprintf(
throw new InvalidArgumentException(\sprintf(
'%s expects a PdfModel as the first argument; received "%s"',
__METHOD__,
(is_object($nameOrModel) ? get_class($nameOrModel) : gettype($nameOrModel))
(\is_object($nameOrModel) ? \get_class($nameOrModel) : \gettype($nameOrModel))
));
}

Expand Down

0 comments on commit 16d8e6b

Please sign in to comment.