Skip to content

Commit

Permalink
Merge pull request #11 from o0h/issue-8
Browse files Browse the repository at this point in the history
FIx #8
  • Loading branch information
o0h authored Sep 5, 2024
2 parents 05abd55 + 79d25f8 commit 280d700
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "AST-based PHP source diff checker",
"require": {
"php": "~8.3.0",
"nikic/php-parser": "^4.16",
"nikic/php-parser": "^v5.1.0",
"symfony/console": "^6.3"
},
"require-dev": {
Expand Down
22 changes: 12 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/External/AstHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class AstHasher implements AstHasherInterface

public function __construct()
{
$this->parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7);
$this->parser = (new ParserFactory())->createForNewestSupportedVersion();
$this->dumper = new NodeDumper();
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/External/AstHasherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getLongString($seed): string
}
CODE;
$actual = $this->subject->get($source);
$expected = 'abcd814e2805dc8935a669bccd6671a7';
$expected = 'e972738f82f2733237099fa4f141582f';
$this->assertSame($expected, $actual);
}

Expand Down

0 comments on commit 280d700

Please sign in to comment.