diff --git a/src/Bridges/TexyLatte/TexyFilters.php b/src/Bridges/TexyLatte/TexyFilters.php index f06b207..4ac9f23 100644 --- a/src/Bridges/TexyLatte/TexyFilters.php +++ b/src/Bridges/TexyLatte/TexyFilters.php @@ -25,7 +25,7 @@ public function __construct(TexyMultiplier $texyMultiplier) public function process(FilterInfo $filterInfo, string $text, bool $singleLine = false): string { if (!in_array($filterInfo->contentType, [null, Engine::CONTENT_TEXT, Engine::CONTENT_HTML, Engine::CONTENT_XHTML, Engine::CONTENT_XML], true)) { - trigger_error('Filter |texy used with incompatible type ' . strtoupper((string) $filterInfo->contentType), E_USER_WARNING); + trigger_error('Filter |texy used with incompatible type ' . strtoupper($filterInfo->contentType), E_USER_WARNING); } $filterInfo->contentType = ($this->texyMultiplier->getOutputMode() & Texy::XML) !== 0 ? Engine::CONTENT_XHTML : Engine::CONTENT_HTML; @@ -35,7 +35,7 @@ public function process(FilterInfo $filterInfo, string $text, bool $singleLine = public function processLine(FilterInfo $filterInfo, string $text): string { if (!in_array($filterInfo->contentType, [null, Engine::CONTENT_TEXT, Engine::CONTENT_HTML, Engine::CONTENT_XHTML, Engine::CONTENT_XML], true)) { - trigger_error('Filter |texyLine used with incompatible type ' . strtoupper((string) $filterInfo->contentType), E_USER_WARNING); + trigger_error('Filter |texyLine used with incompatible type ' . strtoupper($filterInfo->contentType), E_USER_WARNING); } $filterInfo->contentType = ($this->texyMultiplier->getOutputMode() & Texy::XML) !== 0 ? Engine::CONTENT_XHTML : Engine::CONTENT_HTML; @@ -45,7 +45,7 @@ public function processLine(FilterInfo $filterInfo, string $text): string public function processTypo(FilterInfo $filterInfo, string $text): string { if (!in_array($filterInfo->contentType, [null, Engine::CONTENT_TEXT, Engine::CONTENT_HTML, Engine::CONTENT_XHTML, Engine::CONTENT_XML], true)) { - trigger_error('Filter |texyTypo used with incompatible type ' . strtoupper((string) $filterInfo->contentType), E_USER_WARNING); + trigger_error('Filter |texyTypo used with incompatible type ' . strtoupper($filterInfo->contentType), E_USER_WARNING); } return $this->texyMultiplier->processTypo($text);