Skip to content

Commit

Permalink
Add dependency attributes to AstParser::parse
Browse files Browse the repository at this point in the history
  • Loading branch information
navarr committed Jun 22, 2021
1 parent c801fe6 commit c792d5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Model/AstParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

class AstParser implements ParserInterface
{
#[Dependency('nikic/php-parser', '^4')]
#[Dependency('navarr/attribute-dependency', '^1', 'Existence of Dependency attribute')]
public function parse(string $file): array
{
$astParser = (new ParserFactory)->create(ParserFactory::PREFER_PHP7);
Expand Down

0 comments on commit c792d5c

Please sign in to comment.