Skip to content

Commit

Permalink
compatibility with php-parser 5
Browse files Browse the repository at this point in the history
  • Loading branch information
websmurf committed Sep 11, 2024
1 parent aa70ef9 commit 87de523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/dredd-hooks-laravel
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $options = getopt('', [

// Second argument is the single kernel file
$dreddKernelPath = $argv[1];
$parser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7);
$parser = (new ParserFactory)->createForNewestSupportedVersion();

try {
$statements = $parser->parse(file_get_contents($dreddKernelPath));
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "package",
"require": {
"php": ">=7.2",
"nikic/php-parser": "^4.2",
"nikic/php-parser": "^5.0",
"ddelnano/dredd-hooks-php": "^2.0"
},
"license": "MIT",
Expand Down

0 comments on commit 87de523

Please sign in to comment.