From a1b87bc81e818db00e89ec76a9f6df35d9c5448d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 12 Feb 2019 17:41:52 +0100 Subject: Update PHP-Parser for 7.1 compatibility Signed-off-by: Joas Schilling Signed-off-by: Roeland Jago Douma --- build/OCPSinceChecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/OCPSinceChecker.php') 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'); -- cgit v1.2.3