Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-12 19:41:52 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-02-14 22:04:17 +0300
commita1b87bc81e818db00e89ec76a9f6df35d9c5448d (patch)
treefa27172e4ce51f83766d016bea2b1be915accba9 /build
parentb6d327ee47b2c4cbd062d52997efbe0186c4c45c (diff)
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 'build')
-rw-r--r--build/OCPSinceChecker.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/OCPSinceChecker.php b/build/OCPSinceChecker.php
index 04a19b3416f..13f58fe2550 100644
--- a/build/OCPSinceChecker.php
+++ b/build/OCPSinceChecker.php
@@ -99,7 +99,7 @@ class SinceTagCheckVisitor extends \PhpParser\NodeVisitorAbstract {
echo 'Parsing all files in lib/public for the presence of @since or @deprecated on each method...' . PHP_EOL . PHP_EOL;
-$parser = new PhpParser\Parser(new PhpParser\Lexer);
+$parser = (new PhpParser\ParserFactory)->create(PhpParser\ParserFactory::PREFER_PHP7);
/* iterate over all .php files in lib/public */
$Directory = new RecursiveDirectoryIterator(dirname(__DIR__) . '/lib/public');