Documentation

Version
in package

FinalYes

Version class

Note that we cannot check the version at runtime via git because that would cause a lot of I/O operations.

Table of Contents

Methods

getVersion()  : string
Retrieves the package version in the format <detected-version>@<commit-hash>, where the detected version is what composer could detect.
__construct()  : mixed
Private constructor - this class is not meant to be instantiated

Methods

getVersion()

Retrieves the package version in the format <detected-version>@<commit-hash>, where the detected version is what composer could detect.

public static getVersion() : string
Tags
throws
OutOfBoundsException
psalm-pure
psalm-suppress

MixedOperand composer-runtime-api:^2 has rough if no type declarations at all - we'll live with it

psalm-suppress

ImpureMethodCall composer-runtime-api:^2 has rough if no type declarations at all - we'll live with it

Return values
string

__construct()

Private constructor - this class is not meant to be instantiated

private __construct() : mixed

        
On this page

Search results