for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright MediaCT. All rights reserved.
* https://www.mediact.nl
*/
namespace Mediact\CodingStandard;
use PHP_CodeSniffer\Config;
trait PhpVersionTrait
{
* Gets the PHP version.
*
* @return int
protected function getPhpVersion()
return Config::getConfigData('php_version')
return PHP_CodeSniffer\C...Standard\PHP_VERSION_ID
string
integer
?: PHP_VERSION_ID;
}