Skip to content

Commit efba42c

Browse files
Moritz Mfelixkempf
authored andcommitted
Fix PdfGenerator InvalidArgumentException (#23)
1 parent 702d17b commit efba42c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Lib/PdfGenerator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,9 @@ public function render($viewFile, array $options = [])
197197
case self::TARGET_BINARY:
198198
return $mpdf->Output('', 'S');
199199
break;
200+
default:
201+
throw new \InvalidArgumentException("{$options['target']} is not a valid target");
202+
break;
200203
}
201-
202-
throw new \InvalidArgumentException("{$options['target']} is not a valid target");
203204
}
204205
}

0 commit comments

Comments
 (0)