PHP 8 support
- Increased upper PHP version to 8
- Increased lower PHP version to 7.4
- Properly type hinting
NumberInterface::getCheckDigit()return - Added
throws LuhnAlgorithmExceptionInterfaceto all functions
Migrating from v4 to v5
There's a high probability that this change is not breaking for you
- Make sure your application runs and supports PHP >= 7.4
- If you've implemented
NumberInterface, then add?intto thegetCheckDigit()return - If you want to, catch
LugnAlgorithmExceptionInterface