Skip to content

Commit a5f6e63

Browse files
Fix exception on PHP 7.1
1 parent 8e7978a commit a5f6e63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Matchers/L33tMatch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function match($password, array $userInputs = array())
4949
foreach ($results as $result) {
5050
// Set substituted elements.
5151
$result['sub'] = array();
52-
$result['sub_display'] = '';
52+
$result['sub_display'] = [];
5353
foreach ($indexSubs as $i => $t) {
5454
$result['sub'][$password[$i]] = $t;
5555
$result['sub_display'][] = "$password[$i] -> $t";
@@ -190,4 +190,4 @@ protected static function getSubstitutions($password)
190190

191191
return $map;
192192
}
193-
}
193+
}

0 commit comments

Comments
 (0)