Skip to content

Commit

Permalink
using PHP_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroMinoccheri authored and micheleorselli committed Sep 21, 2021
1 parent 2bc57fb commit f4d37a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
])
;
2 changes: 1 addition & 1 deletion src/Analyzer/FileParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f4d37a4

Please sign in to comment.