Skip to content

Commit

Permalink
Merge pull request #64 from spryker-sdk/bc-fix
Browse files Browse the repository at this point in the history
BC fix
  • Loading branch information
vol4onok authored Mar 12, 2024
2 parents 7dea7c0 + 882eebe commit 1bd136d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser/PhpParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class PhpParser implements PhpParserInterface
*/
public function __construct(ParserFactory $parserFactory)
{
$this->parser = $parserFactory->createForNewestSupportedVersion();
$this->parser = method_exists($parserFactory, 'createForNewestSupportedVersion') ? $parserFactory->createForNewestSupportedVersion() : $parserFactory->create(ParserFactory::PREFER_PHP7);
}

/**
Expand Down

0 comments on commit 1bd136d

Please sign in to comment.