Summary
kk_KZ\Person::individualIdentificationNumber sometimes generates incorect digit for century.
Versions
|
Version |
| PHP |
Php version independent |
fakerphp/faker |
main branch |
Self-enclosed code snippet for reproduction
$birthDate = DateTime::dateTimeBetween('2030-01-01', '2099-12-31');
$individualIdentificationNumber = $this->faker->individualIdentificationNumber($birthDate, Person::GENDER_MALE);
Expected output
(int)$individualIdentificationNumber[6] == Person::MALE_CENTURY_21ST;
Actual output
(int)$individualIdentificationNumber[6] == Person::MALE_CENTURY_20ST