Skip to content

Commit 63ade7a

Browse files
committed
Issue #345 Fix type mismatch error for cat command
1 parent a06b335 commit 63ade7a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Pdf.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,12 @@ public function cat(
181181
?string $rotation = null,
182182
): self {
183183
$this->getCommand()
184-
->setOperation('cat')
185-
->addPageRange($start, $end, $handle, $qualifier, $rotation);
184+
->setOperation('cat');
185+
186+
if ($start !== null) {
187+
$this->getCommand()
188+
->addPageRange($start, $end, $handle, $qualifier, $rotation);
189+
}
186190
return $this;
187191
}
188192

0 commit comments

Comments
 (0)