Skip to content

PHP 8 support

Compare
Choose a tag to compare
@Ekman Ekman released this 10 Jan 14:00
· 13 commits to master since this release
6e6f0ad
  • Increased upper PHP version to 8
  • Increased lower PHP version to 7.4
  • Properly type hinting NumberInterface::getCheckDigit() return
  • Added throws LuhnAlgorithmExceptionInterface to all functions

Migrating from v4 to v5

There's a high probability that this change is not breaking for you

  1. Make sure your application runs and supports PHP >= 7.4
  2. If you've implemented NumberInterface, then add ?int to the getCheckDigit() return
  3. If you want to, catch LugnAlgorithmExceptionInterface