Skip to content

Commit 280d700

Browse files
authored
Merge pull request #11 from o0h/issue-8
FIx #8
2 parents 05abd55 + 79d25f8 commit 280d700

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "AST-based PHP source diff checker",
55
"require": {
66
"php": "~8.3.0",
7-
"nikic/php-parser": "^4.16",
7+
"nikic/php-parser": "^v5.1.0",
88
"symfony/console": "^6.3"
99
},
1010
"require-dev": {

Diff for: composer.lock

+12-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/External/AstHasher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class AstHasher implements AstHasherInterface
1717

1818
public function __construct()
1919
{
20-
$this->parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7);
20+
$this->parser = (new ParserFactory())->createForNewestSupportedVersion();
2121
$this->dumper = new NodeDumper();
2222
}
2323

Diff for: tests/unit/External/AstHasherTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getLongString($seed): string
3535
}
3636
CODE;
3737
$actual = $this->subject->get($source);
38-
$expected = 'abcd814e2805dc8935a669bccd6671a7';
38+
$expected = 'e972738f82f2733237099fa4f141582f';
3939
$this->assertSame($expected, $actual);
4040
}
4141

0 commit comments

Comments
 (0)