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

Only parse php7 code in app code checker
This commit is contained in:
Roeland Jago Douma 2019-12-19 10:33:30 +01: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

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