Skip to content

Commit 8241372

Browse files
authored
Merge pull request #4 from PhantPHP/Fix-html-to-text
Fix html to text
2 parents 651aeff + 5e5fec1 commit 8241372

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ use Phant\EmailSender\Service\HtmlToText;
7373

7474
$html = '';
7575

76-
$text = (new HtmlToText())(html);
76+
$text = (new HtmlToText)(html);
7777

7878

7979
```

component/Service/HtmlToText.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
final class HtmlToText
88
{
9-
public function _invoke(
9+
public function __invoke(
1010
string $html
1111
): string {
1212
$html = self::removeCodeIndent($html);

test/Service/HtmlToTextTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testInvoke(): void
104104
. "\n"
105105
. "\n"
106106
. 'The footer',
107-
(new HtmlToText())->_invoke($this->fixture)
107+
(new HtmlToText)($this->fixture)
108108
);
109109
}
110110

0 commit comments

Comments
 (0)