Skip to content

Commit 8d31f9d

Browse files
committed
fix sendPDF method signature
1 parent 3948340 commit 8d31f9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/localfile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ public function deletePDF(?int $userid = null) {
141141
* Send the PDF to the browser or return it as a string.
142142
*
143143
* @param int $userid the id of the user whose certificate we want to view
144-
* @param int $deliveryoption the delivery option of the customcert
144+
* @param string $deliveryoption the delivery option of the customcert
145145
* @param bool $return Do we want to return the contents of the PDF?
146146
* @return string|void Can return the PDF in string format if specified.
147147
*/
148-
public function sendPDF(?int $userid = NULL, int $deliveryoption = certificate::DELIVERY_OPTION_DOWNLOAD, bool $return = false) {
148+
public function sendPDF(?int $userid = NULL, string $deliveryoption = certificate::DELIVERY_OPTION_DOWNLOAD, bool $return = false) {
149149
global $USER;
150150

151151
if (empty($userid)) {

0 commit comments

Comments
 (0)