Making PHPStan happy
This commit is contained in:
parent
6252899428
commit
4a6066706e
|
@ -0,0 +1 @@
|
|||
tags
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue