Merge pull request #18470 from nextcloud/techdebt/app-code-checker-php7-only

Only parse php7 code in app code checker
pull/18427/head
Roeland Jago Douma 2019-12-19 10:33:30 +07:00 committed by GitHub
commit f87a71cf23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -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);
}
/**