class PhpInfoCollector extends PhpInfoCollector (View source)

Extends the default PhpInfoCollector to trim long PHP version numbers

Methods

public
collect()

No description

protected
string
trimVersion(string $version)

Given a PHP_VERSION constant value, trim any "extra" meta information from the end, returning the major, minor and patch release of the version. Will fall back to returning the input if the matching fails.

Details

collect()

No description

protected string trimVersion(string $version)

Given a PHP_VERSION constant value, trim any "extra" meta information from the end, returning the major, minor and patch release of the version. Will fall back to returning the input if the matching fails.

Parameters

string $version

Return Value

string