inacho / php-credit-card-validator

Validates popular debit and credit cards numbers against regular expressions and Luhn algorithm. Also validates the CVC and the expiration date.
MIT License
199 stars 104 forks source link

PHP 8 Compatiblity issue #35

Open asvirk1982 opened 2 years ago

asvirk1982 commented 2 years ago

PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /vendor/inacho/php-credit-card-validator/src/CreditCard.php on line 209

hayden-t commented 1 year ago

work this out ? maybe ill have to fix it...

hayden-t commented 1 year ago

there are numerous pull requests (patches) for this problem, just have a look and apply the small changes they suggest: https://github.com/inacho/php-credit-card-validator/pulls

hayden-t commented 1 year ago

there is also this new fork (among many others) https://github.com/inacho/php-credit-card-validator/issues/29