LeKoala\DebugBar\Collector\PhpInfoCollector::trimVersion
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.
Signature
protected function trimVersion(string
$version )
Parameters
$version
— string
Returns
- string