Skip to content

Commit e0e4ab7

Browse files
committed
Fix bugs in ASTConverter, update php-parser dependency
Properly extend interfaces Fix generated 'alias' for php-ast `use` nodes : set the 'alias' to null if the last part is the same as the PHP-Parser alias. Fix the AST flags for short vs long arrays. Fix miscellanous bugs
1 parent d747a33 commit e0e4ab7

File tree

11 files changed

+749
-547
lines changed

11 files changed

+749
-547
lines changed

.phan/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
'vendor/etsy/phan/.phan/plugins/UnreachableCodePlugin.php', // (TODO: make BlockExitStatus more reliable)
242242
// NOTE: This plugin only produces correct results when
243243
// Phan is run on a single core (-j1).
244-
// '.phan/plugins/UnusedSuppressionPlugin.php',
244+
'vendor/etsy/phan/.phan/plugins/UnusedSuppressionPlugin.php',
245245
],
246246

247247
];

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"name": "tysonandre/php-parser-to-php-ast",
33
"description": "A php-parser to php-ast converter written in php. Can be used to test out projects using php-ast without compiling php-ast.",
4+
"prefer-stable": true,
5+
"minimum-stability": "dev",
46
"require": {
57
"php": ">=7.1",
6-
"nikic/PHP-Parser": "~3.1.0"
8+
"nikic/PHP-Parser": "~3.1.1"
79
},
810
"require-dev": {
911
"phpunit/phpunit": "^5.7",
10-
"etsy/phan": "~0.9.4"
12+
"etsy/phan": "0.9.4"
1113
},
1214
"suggest": {
1315
"ext-ast": "~0.1.5"

composer.lock

Lines changed: 36 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)