Skip to content

LIBVER does not reflect the correct version in google/apiclient 2.18.2Β #2658

@Migue98

Description

@Migue98

LIBVER does not reflect the correct version in google/apiclient 2.18.2

The LIBVER constant in google/apiclient does not update correctly when a new version is released.
Currently, in google/apiclient version 2.18.2, the LIBVER constant still shows "2.12.6", which causes confusion regarding the actual installed version.

Steps to Reproduce

  1. Install google/apiclient using Composer:

composer require google/apiclient

  1. Check the installed version:

composer show google/apiclient

Expected output (for example):

google/apiclient 2.18.2

  1. Run the following PHP script:
use Google\Client;
echo Client::LIBVER;

Actual output:

2.12.6

Even though the installed version is 2.18.2, LIBVER does not reflect the correct version.
Expected Behavior

The LIBVER constant in src/Client.php should be updated to reflect the actual package version in each new release.
Environment

    google/apiclient: 2.18.2
    PHP Version: 8.2.12
    Laravel Version: 11.44.1

Suggested Fix

Update the LIBVER constant in src/Client.php whenever a new version is released.

Thank you for your work on this library! πŸš€

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