Skip to content

Commit

Permalink
Fix PhpStan error
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Apr 11, 2022
1 parent 5adaa45 commit 4da14e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Html2Text.php
Expand Up @@ -201,8 +201,8 @@ public function convert(string $text, string $locale): string
$text = (string) preg_replace("/\n\\s+\n/", "\n\n", $text);
$text = (string) preg_replace("/[\n]{3,}/", "\n\n", $text);

// Add link list
if ($this->linkList !== '') {
/** @phpstan-ignore-next-line */
if ($this->linkList !== '') { // Add link list
$text .= "\n\n" . (self::LINKS_LOCALE[$locale] ?? 'Links') . ":\n-------\n" . $this->linkList;
}

Expand Down

0 comments on commit 4da14e5

Please sign in to comment.