Skip to content

Commit 455a2b7

Browse files
committed
fix constant name
1 parent c95f14c commit 455a2b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MpdfRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ public static function getOptionsSupport(): array
9393

9494
private function setPageFormat(): void
9595
{
96-
$size = $this->options->resolvePaperSize(LengthUnit::MILLIMETER_UNIT);
96+
$size = $this->options->resolvePaperSize(LengthUnit::MILLIMETER);
9797
$orientation = 'p';
9898

9999
$this->mpdf->_setPageSize($size, $orientation);
100100
}
101101

102102
private function getMargin(): array
103103
{
104-
$margin = Margin::fromOptions($this->options, LengthUnit::MILLIMETER_UNIT);
104+
$margin = Margin::fromOptions($this->options, LengthUnit::MILLIMETER);
105105

106106
return [
107107
'margin_top' => $margin->getRaw('marginTop'),

0 commit comments

Comments
 (0)