public static function isValidOtherPersonalNif(string $nif): bool
    {
        if (!preg_match(self::OTHER_PERSONAL_NIF_REGEX, $nif, $matches)) {
            return false;
        }

        return self::isValidNifCheck($nif, $matches);
    }
public static function isValidOtherPersonalNif(string $nif): bool
    {
        if (!preg_match(self::OTHER_PERSONAL_NIF_REGEX, $nif, $matches)) {
            return false;
        }

        return self::isValidNifCheck($nif, $matches);
    }
public static function isValidOtherPersonalNif ( string $ nif ) : bool { if ( ! preg_match ( self :: OTHER_PERSONAL_NIF_REGEX , $ nif , $ matches ) ) { return false ; } return self :: isValidNifCheck ( $ nif , $ matches ) ; }
Other personal NIFS are meant for temporary residents that do not qualify for a NIE but nonetheless need a NIF

See references

@see https://es.wikipedia.org/wiki/N%C3%BAmero_de_identificaci%C3%B3n_fiscal
@see https://es.wikipedia.org/wiki/C%C3%B3digo_de_identificaci%C3%B3n_fiscal
Other personal NIFS are meant for temporary residents that do not qualify for a NIE but nonetheless need a NIF