You are here

protected function SupportedPhpVersion::getPhpVersion in Automatic Updates 8

Get the PHP version.

Return value

string The current php version.

1 call to SupportedPhpVersion::getPhpVersion()
SupportedPhpVersion::run in src/ReadinessChecker/SupportedPhpVersion.php
Run check.
2 methods override SupportedPhpVersion::getPhpVersion()
TestBlacklistPhp72Versions::getPhpVersion in tests/src/Kernel/ReadinessChecker/SupportedPhpVersionTest.php
Get the PHP version.
TestMinimumPhpVersion::getPhpVersion in tests/src/Kernel/ReadinessChecker/SupportedPhpVersionTest.php
Get the PHP version.

File

src/ReadinessChecker/SupportedPhpVersion.php, line 31

Class

SupportedPhpVersion
Supported PHP version checker.

Namespace

Drupal\automatic_updates\ReadinessChecker

Code

protected function getPhpVersion() {
  return PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION;
}