Only parse php7 code in app code checker

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2019-12-18 15:39:14 +01:00
parent c44fd46c8c
commit cdd69c0f97
No known key found for this signature in database
GPG key ID: CC42AC2A7F0E56D8

View file

@ -59,7 +59,7 @@ class CodeChecker extends BasicEmitter {
public function __construct(ICheck $checkList, $checkMigrationSchema) {
$this->checkList = $checkList;
$this->checkMigrationSchema = $checkMigrationSchema;
$this->parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7);
$this->parser = (new ParserFactory)->create(ParserFactory::ONLY_PHP7);
}
/**