Skip to content

Commit f000211

Browse files
authored
Merge pull request SAML-Toolkits#1 from smullick/smullick-patch-1
Update Utils.php
2 parents 9416fa7 + d089b4f commit f000211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Saml2/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ public static function parseDuration($duration, $timestamp = null)
727727

728728
/* Parse the duration. We use a very strict pattern. */
729729
$durationRegEx = '#^(-?)P(?:(?:(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+)S)?)?)|(?:(\\d+)W))$#D';
730-
$matches = [];
730+
$matches = array();
731731
if (!preg_match($durationRegEx, $duration, $matches)) {
732732
throw new Exception('Invalid ISO 8601 duration: ' . $duration);
733733
}

0 commit comments

Comments
 (0)