Skip to content

Commit 42a14de

Browse files
committed
cs
1 parent 5d4aa75 commit 42a14de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Gherkin/GherkinParser.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Behat\Gherkin\Lexer;
99
use Behat\Gherkin\Node\FeatureNode;
1010
use Behat\Gherkin\Parser;
11+
use Entropy\Utils\FileSystem;
1112
use Webmozart\Assert\Assert;
1213

1314
final readonly class GherkinParser
@@ -36,7 +37,9 @@ public function __construct()
3637

3738
public function parseFile(string $filePath): FeatureNode
3839
{
39-
$featureNode = $this->parser->parseFile($filePath);
40+
$fileContents = FileSystem::read($filePath);
41+
42+
$featureNode = $this->parser->parse($fileContents);
4043
Assert::isInstanceOf($featureNode, FeatureNode::class);
4144

4245
return $featureNode;

0 commit comments

Comments
 (0)