Fixed non-existent env when interpolating vars
This commit is contained in:
parent
25887a47d3
commit
d581afa793
@ -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 = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user