Skip to content

Conversation

@BrianHenryIE
Copy link

I'm using php-parser >5 in my project, BrianHenryIE/strauss.

This package looks like it addresses a lot of the work I was about to undertake, thank you.

Unfortunately, due to version differences, I get:

Error : Call to undefined method PhpParser\ParserFactory::create()
 /path/to/vendor/voku/simple-php-code-parser/src/voku/SimplePhpParser/Parsers/PhpCodeParser.php:203

$parser = (new ParserFactory())->create(

If I were able to extend the PhpCodeParser class I could maybe address this without forking or relying on a merged PR, but it is a final class:

Proposed Changes

Remove final from all classes.

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant