From d581afa7938c61583af570349dc4afbdee9681ec Mon Sep 17 00:00:00 2001 From: Anthony Axenov Date: Sun, 13 Aug 2023 23:11:37 +0800 Subject: [PATCH 1/2] Fixed non-existent env when interpolating vars --- src/Exporters/Abstract/AbstractConverter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = []; -- 2.46.GIT From 9b021296eba51407e15a46a89caaf5be9761dbbb Mon Sep 17 00:00:00 2001 From: Anthony Axenov Date: Sun, 13 Aug 2023 23:11:52 +0800 Subject: [PATCH 2/2] Bump version --- src/Processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.46.GIT