diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-02-14 21:23:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-14 21:23:42 +0100 |
commit | ea3fa78a854cd73f93950fa1a6643abbd81de429 (patch) | |
tree | d42f1faa8692095947c072e03cdb748fb51b71c7 /lib | |
parent | fc39b2854983c912fb483f1d0d9c214fbf023108 (diff) | |
parent | 843066b708c550f610073330c6e75093351e8667 (diff) | |
download | nextcloud-server-ea3fa78a854cd73f93950fa1a6643abbd81de429.tar.gz nextcloud-server-ea3fa78a854cd73f93950fa1a6643abbd81de429.zip |
Merge pull request #14167 from nextcloud/techdebt/noid/update-php-parser-for-7.1-compat
Update PHP-Parser for 7.1 compatibility
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/App/CodeChecker/CodeChecker.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/App/CodeChecker/CodeChecker.php b/lib/private/App/CodeChecker/CodeChecker.php index d2f6d7451b4..8f539897c97 100644 --- a/lib/private/App/CodeChecker/CodeChecker.php +++ b/lib/private/App/CodeChecker/CodeChecker.php @@ -25,9 +25,9 @@ namespace OC\App\CodeChecker; use OC\Hooks\BasicEmitter; -use PhpParser\Lexer; use PhpParser\NodeTraverser; use PhpParser\Parser; +use PhpParser\ParserFactory; use RecursiveCallbackFilterIterator; use RecursiveDirectoryIterator; use RecursiveIteratorIterator; @@ -57,7 +57,7 @@ class CodeChecker extends BasicEmitter { public function __construct(ICheck $checkList, $checkMigrationSchema) { $this->checkList = $checkList; $this->checkMigrationSchema = $checkMigrationSchema; - $this->parser = new Parser(new Lexer); + $this->parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7); } /** |