Skip to content

Commit bd4e549

Browse files
authored
[TASK] Avoid the deprecated __toString() in ParserTest (#1056)
Part of #998
1 parent b525327 commit bd4e549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ParserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function unicodeParsing(): void
193193
continue;
194194
}
195195
$contentRules = $ruleSet->getRules('content');
196-
$firstContentRuleAsString = $contentRules[0]->getValue()->__toString();
196+
$firstContentRuleAsString = $contentRules[0]->getValue()->render(OutputFormat::create());
197197
if ($selector === '.test-1') {
198198
self::assertSame('" "', $firstContentRuleAsString);
199199
}

0 commit comments

Comments
 (0)