Skip to content

Commit

Permalink
Merge pull request #274 from hkulekci/php-parser-addition
Browse files Browse the repository at this point in the history
php parser version 5 added into composer
  • Loading branch information
matchish authored May 14, 2024
2 parents 9449095 + 9a049f5 commit 20612b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"elasticsearch/elasticsearch": "^8.0",
"handcraftedinthealps/elasticsearch-dsl": "^8.0",
"laravel/scout": "^8.0|^9.0|^10.0",
"roave/better-reflection": "^4.3|^5.0|^6.18"
"roave/better-reflection": "^4.3|^5.0|^6.18|^6.36"
},
"require-dev": {
"laravel/legacy-factories": "^1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Searchable/SearchableListFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private function getProjectClasses(): Collection
*/
private function getStmts(): array
{
$parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7);
$parser = (new ParserFactory())->createForHostVersion();
$nameResolverVisitor = new NameResolver();
$nodeTraverser = new NodeTraverser();
$nodeTraverser->addVisitor($nameResolverVisitor);
Expand Down

0 comments on commit 20612b6

Please sign in to comment.