We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9416fa7 + d089b4f commit f000211Copy full SHA for f000211
lib/Saml2/Utils.php
@@ -727,7 +727,7 @@ public static function parseDuration($duration, $timestamp = null)
727
728
/* Parse the duration. We use a very strict pattern. */
729
$durationRegEx = '#^(-?)P(?:(?:(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+)S)?)?)|(?:(\\d+)W))$#D';
730
- $matches = [];
+ $matches = array();
731
if (!preg_match($durationRegEx, $duration, $matches)) {
732
throw new Exception('Invalid ISO 8601 duration: ' . $duration);
733
}
0 commit comments