This commit is contained in:
2025-07-14 18:12:17 +08:00
parent d758d21f08
commit da5a6a6b83
+1 -1
View File
@@ -185,7 +185,7 @@ class Str
* @return array
* 剩余天,带分秒
*/
public static function timeout($endTime, int $startTime = NULL): array
public static function timeout($endTime, ?int $startTime = NULL): array
{
$endTime = $endTime - (!empty($startTime) ? $startTime : time());