Skip to content

Commit

Permalink
Test: Fix mktime() Requires Int
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Oct 25, 2023
1 parent f4f0726 commit 7752acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Test/classes/class.ilTestPassesSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ private function isReportingDateReached(): bool
return false;
}

$repTS = mktime($matches[4], $matches[5], $matches[6], $matches[2], $matches[3], $matches[1]);
$repTS = mktime((int) $matches[4], (int) $matches[5], (int) $matches[6], (int) $matches[2], (int) $matches[3], (int) $matches[1]);

return time() >= $repTS;
}
Expand Down

0 comments on commit 7752acc

Please sign in to comment.