Skip to content

Commit

Permalink
Changed call in Nikic parser
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Aug 12, 2024
1 parent 7a7ef9a commit 5e6de45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

# [2.4.2] = 12 August 2024
### Fixed
- Changed call in Nikic parser


# [2.4.1] = 24 June 2024
### Fixed
- Added JSON format to module list output
Expand Down
2 changes: 1 addition & 1 deletion PhpClass/Tokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getImportedClassnamesFromFile(string $filename): array
*/
public function getImportedClassnamesFromSource(string $source): array
{
$parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7);
$parser = (new ParserFactory())->createForNewestSupportedVersion();
$traverser = new NodeTraverser;
$traverser->addVisitor(new NameResolver);
$stmts = $parser->parse($source);
Expand Down

0 comments on commit 5e6de45

Please sign in to comment.