--- Sniff-copy.php 2024-03-09 19:32:08.461032000 +1000 +++ Sniff.php 2024-03-09 19:32:11.705121200 +1000 @@ -128,7 +128,10 @@ static $arrTestVersions = array(); $default = array(null, null); - $testVersion = trim(PHPCSHelper::getConfigData('testVersion')); + + // DM - fix null getting passed to trim + $helper = PHPCSHelper::getConfigData('testVersion'); + $testVersion = trim(is_null($helper)?'':$helper); if (empty($testVersion) === false && isset($arrTestVersions[$testVersion]) === false) {