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 7.4 compatibilty #26

Open gmalahito opened 4 years ago

gmalahito commented 4 years ago

Array and string offset access syntax with curly braces is deprecated {"id":1,"exception":"[object] (ErrorException(code: 0): Array and string offset access syntax with curly braces is deprecated at vendor/inacho/php-credit-card-validator/src/CreditCard.php:209)

arielrivera commented 3 years ago

Array and string offset access syntax with curly braces is deprecated {"id":1,"exception":"[object] (ErrorException(code: 0): Array and string offset access syntax with curly braces is deprecated at vendor/inacho/php-credit-card-validator/src/CreditCard.php:209)

Hello, Did you figure this out ??

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