Skip to content

kk_KZ\Person::individualIdentificationNumber incorect digit for century #412

@vadimonus

Description

@vadimonus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions