File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments