From fd6c74e0f2ed3a7ad9678e0138090d2fa94048fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 8 Dec 2022 00:17:27 +0100 Subject: [PATCH] Fix: Use self::class --- src/Faker/Calculator/Iban.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Faker/Calculator/Iban.php b/src/Faker/Calculator/Iban.php index c8fae24239..470bf0391a 100644 --- a/src/Faker/Calculator/Iban.php +++ b/src/Faker/Calculator/Iban.php @@ -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);