Making PHPStan happy

This commit is contained in:
Pavel Shevaev 2023-08-16 14:14:10 +03:00
parent 6252899428
commit 4a6066706e
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
tags

View File

@ -63,9 +63,9 @@ function flt_time($val, $name, $struct, $args)
if(!preg_match($reg, $val, $matches))
throw new Exception("Bad value, pattern 00:00:00");
$h = $matches[1];
$m = $matches[2];
$s = $matches[3];
$h = intval($matches[1]);
$m = intval($matches[2]);
$s = intval($matches[3]);
return $h * 3600 + $m * 60 + $s;
}