Skip to content

Commit 028d792

Browse files
committed
fix: convert the nullable to be explicit
fix the follow deprecated messages at PHP 8.4: PHP Deprecated: Jeidison\JSignPDF\Sign\exec(): Implicitly marking parameter $output as nullable is deprecated, the explicit nullable type must be used instead in /home/runner/work/jsignpdf-php/jsignpdf-php/tests/JSignPDFTest.php on line 5 PHP Deprecated: Jeidison\JSignPDF\Sign\exec(): Implicitly marking parameter $return_var as nullable is deprecated, the explicit nullable type must be used instead in /home/runner/work/jsignpdf-php/jsignpdf-php/tests/JSignPDFTest.php on line 5 Signed-off-by: Vitor Mattos <[email protected]>
1 parent c697809 commit 028d792

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/JSignPDFTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Jeidison\JSignPDF\Sign;
44

5-
function exec(string $command, array &$output = null, int &$return_var = null) {
5+
function exec(string $command, array &$output = null, ?int &$return_var = null) {
66
global $mockExec;
77
if ($mockExec) {
88
$output = $mockExec;

0 commit comments

Comments
 (0)