diff --git a/src/Exporters/Abstract/AbstractConverter.php b/src/Exporters/Abstract/AbstractConverter.php index b5c15c2..8115ea8 100644 --- a/src/Exporters/Abstract/AbstractConverter.php +++ b/src/Exporters/Abstract/AbstractConverter.php @@ -173,7 +173,7 @@ abstract class AbstractConverter implements ConverterContract */ protected function interpolate(string $content): string { - if (empty($this->vars) && $this->env->hasVars()) { + if (empty($this->vars) && !empty($this->env) && $this->env->hasVars()) { return $content; } $matches = []; diff --git a/src/Processor.php b/src/Processor.php index e4c251e..9bb8cb2 100644 --- a/src/Processor.php +++ b/src/Processor.php @@ -22,7 +22,7 @@ class Processor /** * Converter version */ - public const VERSION = '1.2.2'; + public const VERSION = '1.2.3'; /** * @var string[] Paths to collection files