diff --git a/src/Mjml.php b/src/Mjml.php index 0b2c61a..2b84f5b 100755 --- a/src/Mjml.php +++ b/src/Mjml.php @@ -101,7 +101,7 @@ public function workingDirectory(string $workingDirectory): self public function canConvert(string $mjml): bool { try { - self::new()->convert($mjml); + $this->convert($mjml); } catch (CouldNotConvertMjml) { return false; } @@ -112,7 +112,7 @@ public function canConvert(string $mjml): bool public function canConvertWithoutErrors(string $mjml): bool { try { - $result = self::new()->convert($mjml); + $result = $this->convert($mjml); } catch (CouldNotConvertMjml) { return false; }