Skip to content

Commit d313604

Browse files
committed
fix:Deprecated: Exception::__construct(): Passing null to parameter int
1 parent 43f91a8 commit d313604

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Exception/ErrorCommandExecutable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ErrorCommandExecutable extends Exception
1212
* @param int $code
1313
* @param Exception|null $previous
1414
* @param array $output
15-
*
15+
*
1616
*/
1717
public function __construct($message = "", $code = 0, Exception $previous = null, $output = [])
1818
{

src/PHPJasper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public function execute($user = false)
248248
exec($this->command, $output, $returnVar);
249249

250250
if ($returnVar !== 0) {
251-
throw new Exception\ErrorCommandExecutable(null, null, null, $output);
251+
throw new Exception\ErrorCommandExecutable(null, 0, null, $output);
252252
}
253253

254254
return $output;

0 commit comments

Comments
 (0)