From f4d37a403b27191ab4637ab02fdc99790293394b Mon Sep 17 00:00:00 2001 From: AlessandroMinoccheri Date: Mon, 20 Sep 2021 19:58:57 +0200 Subject: [PATCH] using PHP_VERSION --- .php-cs-fixer.dist.php | 3 ++- src/Analyzer/FileParser.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 8e51d0c4..6338d2d9 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -36,6 +36,7 @@ 'general_phpdoc_annotation_remove' => ['annotations' => ['author', 'package']], 'list_syntax' => ['syntax' => 'short'], 'phpdoc_to_comment' => false, - 'php_unit_method_casing' => ['case' => 'snake_case'] + 'php_unit_method_casing' => ['case' => 'snake_case'], + 'function_to_constant' => false ]) ; \ No newline at end of file diff --git a/src/Analyzer/FileParser.php b/src/Analyzer/FileParser.php index 7679d378..2e4960cb 100644 --- a/src/Analyzer/FileParser.php +++ b/src/Analyzer/FileParser.php @@ -25,7 +25,7 @@ public function __construct(NodeTraverser $traverser, FileVisitor $fileVisitor, $lexer = new Emulative([ 'usedAttributes' => ['comments', 'startLine', 'endLine', 'startTokenPos', 'endTokenPos'], - 'phpVersion' => phpversion('tidy'), + 'phpVersion' => phpversion(), ]); $this->parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7, $lexer);