Skip to content

Commit

Permalink
Fix: Use self::class
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 7, 2022
1 parent c05baed commit fd6c74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Faker/Calculator/Iban.php
Expand Up @@ -17,7 +17,7 @@ public static function checksum($iban)
$checkString = substr($iban, 4) . substr($iban, 0, 2) . '00';

// Replace all letters with their number equivalents
$checkString = preg_replace_callback('/[A-Z]/', ['self', 'alphaToNumberCallback'], $checkString);
$checkString = preg_replace_callback('/[A-Z]/', [self::class, 'alphaToNumberCallback'], $checkString);

// Perform mod 97 and subtract from 98
$checksum = 98 - self::mod97($checkString);
Expand Down

0 comments on commit fd6c74e

Please sign in to comment.