FIX: Deprecation

This commit is contained in:
Tony Air 2023-02-17 23:19:33 +02:00
parent 8308ecc94d
commit ee3a63e029

View File

@ -29,7 +29,8 @@ class TestServer extends BuildTask
echo self::success('BASE_PATH: <b>'.BASE_PATH.'</b>');
echo self::success('PHP: <b>'.phpversion().'</b>');
$v = Deprecation::dump_settings()['version'];
$v = Deprecation::dump_settings();
$v = $v ? $v['version'] : null;
if ($v) {
echo self::success('SilverStipe version: <b>'.$v.'</b>');
} else {