Skip to content

Commit 9bd5536

Browse files
committed
Fix rules without template vars
1 parent 41d2af3 commit 9bd5536

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/RuleContent.php

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ public function __construct(array $content, array $templateVars ) {
2121
* @return bool
2222
*/
2323
public function getContent() : array {
24+
25+
if ( empty( $this->templateVars ) ) {
26+
return $this->content;
27+
}
28+
2429
$result = '';
2530
$templateContent = implode( PHP_EOL, $this->content );
2631

0 commit comments

Comments
 (0)