summaryrefslogtreecommitdiffstats
path: root/lib/private/App
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-12 17:41:52 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-02-14 20:04:17 +0100
commita1b87bc81e818db00e89ec76a9f6df35d9c5448d (patch)
treefa27172e4ce51f83766d016bea2b1be915accba9 /lib/private/App
parentb6d327ee47b2c4cbd062d52997efbe0186c4c45c (diff)
downloadnextcloud-server-a1b87bc81e818db00e89ec76a9f6df35d9c5448d.tar.gz
nextcloud-server-a1b87bc81e818db00e89ec76a9f6df35d9c5448d.zip
Update PHP-Parser for 7.1 compatibility
Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/App')
-rw-r--r--lib/private/App/CodeChecker/CodeChecker.php4
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);
}
/**