PhpInfoCollector
class PhpInfoCollector extends PhpInfoCollector (View source)
Extends the default PhpInfoCollector to trim long PHP version numbers
Methods
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.