Skip to content

Commit

Permalink
Don't instantiate new
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv committed Aug 23, 2023
1 parent 1974af7 commit 2416e16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mjml.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 2416e16

Please sign in to comment.