Compare commits

...

3 Commits

Author SHA1 Message Date
d854732143 Merge pull request 'dev' (#7) from dev into master
Reviewed-on: #7
2023-08-13 15:12:22 +00:00
9b021296eb
Bump version 2023-08-13 23:11:52 +08:00
d581afa793
Fixed non-existent env when interpolating vars 2023-08-13 23:11:37 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ abstract class AbstractConverter implements ConverterContract
*/ */
protected function interpolate(string $content): string 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; return $content;
} }
$matches = []; $matches = [];

View File

@ -22,7 +22,7 @@ class Processor
/** /**
* Converter version * Converter version
*/ */
public const VERSION = '1.2.2'; public const VERSION = '1.2.3';
/** /**
* @var string[] Paths to collection files * @var string[] Paths to collection files