src/Application.php
public function setTarget()
    {
        if (empty($this->args['--target'])) {
            $this->analyzer->setTargetPhpVersion(PhpCodeFixer::getLatestSupportedTargetVersion());
        } else {
            $this->analyzer->setTargetPhpVersion($this->args['--target']);
        }
    }
public function setTarget()
    {
        if (empty($this->args['--target'])) {
            $this->analyzer->setTargetPhpVersion(PhpCodeFixer::getLatestSupportedTargetVersion());
        } else {
            $this->analyzer->setTargetPhpVersion($this->args['--target']);
        }
    }
Checks --target argument
@throws Exception