Skip to content

Commit 882c1f7

Browse files
committed
Reverted toInteger() to public again
1 parent 3753405 commit 882c1f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LuhnAlgorithm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function getCheckDigit() {
152152
* @param string $string String to "convert" to integer
153153
* @return string String containing only numbers
154154
*/
155-
private static function toInteger($string) {
155+
public static function toInteger($string) {
156156
return preg_replace("/[^\d]/", "", $string);
157157
}
158158

0 commit comments

Comments
 (0)