Skip to content

Commit a590dca

Browse files
authored
Chore: Update code to not trigger PHPStan errors (#78)
1 parent d3ed999 commit a590dca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Twig/FeatureTagTokenParser.php

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public function parse(Token $token): Node
2222
$stream->expect(Token::NAME_TYPE, 'endfeature');
2323
$stream->expect(Token::BLOCK_END_TYPE);
2424

25+
assert(is_string($featureName));
26+
2527
return new FeatureTagNode($featureName, $body, $token->getLine(), $this->getTag(), $this->extensionClass);
2628
}
2729

0 commit comments

Comments
 (0)