fix: phpstan level=5
This commit is contained in:
parent
1638d558c5
commit
2947e4aac3
8 changed files with 13 additions and 32 deletions
|
|
@ -73,8 +73,8 @@ class Primitive {
|
|||
|
||||
$tmp = array();
|
||||
if (preg_match('/(\d+)-(\d+)-(\d+)T(\d+):(\d+)Z/', $value, $tmp)) {
|
||||
if (checkdate($tmp[2], $tmp[3], $tmp[1])) {
|
||||
$result = mktime($tmp[4], $tmp[5], 0, $tmp[2], $tmp[3], $tmp[1]);
|
||||
if (checkdate((int)$tmp[2], (int)$tmp[3], (int)$tmp[1])) {
|
||||
$result = mktime((int)$tmp[4], (int)$tmp[5], 0, (int)$tmp[2], (int)$tmp[3], (int)$tmp[1]);
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue