Skip to content

Commit 2f121b4

Browse files
committed
Do not apply preprocessor in undef expression
1 parent c90822f commit 2f121b4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Internal/Runtime/SourceExecutor.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -638,10 +638,7 @@ private function doRemoveDefine(Composite $token, ReadableInterface $source): it
638638
return [];
639639
}
640640

641-
642-
$body = $this->escape($token[0]->getValue());
643-
644-
$name = $this->replace($body, DirectiveExecutor::CTX_SOURCE);
641+
$name = $this->escape($token[0]->getValue());
645642

646643
assert($name !== '', 'Directive name cannot be empty');
647644
$this->directives->undef($name);

0 commit comments

Comments
 (0)