Skip to content

Commit e83afe4

Browse files
committed
consistency: use int cast like elsewhere
1 parent aa0ba44 commit e83afe4

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

lib/Saml2/Utils.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -690,15 +690,15 @@ public static function parseSAML2Time($time)
690690
}
691691

692692
/* Extract the different components of the time from the
693-
* matches in the regex. intval will ignore leading zeroes
693+
* matches in the regex. int cast will ignore leading zeroes
694694
* in the string.
695695
*/
696-
$year = intval($matches[1]);
697-
$month = intval($matches[2]);
698-
$day = intval($matches[3]);
699-
$hour = intval($matches[4]);
700-
$minute = intval($matches[5]);
701-
$second = intval($matches[6]);
696+
$year = (int)$matches[1];
697+
$month = (int)$matches[2];
698+
$day = (int)$matches[3];
699+
$hour = (int)$matches[4];
700+
$minute = (int)$matches[5];
701+
$second = (int)$matches[6];
702702

703703
/* We use gmmktime because the timestamp will always be given
704704
* in UTC.

0 commit comments

Comments
 (0)