From 3804c5751ea263426b6b20bc17d8355fbce0da1a Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Mon, 3 Mar 2025 14:37:40 +0100 Subject: [PATCH] [TASK] Avoid the deprecated `__toString()` in `ParserTest` Part of #998 --- tests/ParserTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ParserTest.php b/tests/ParserTest.php index 81271a14..2c233c46 100644 --- a/tests/ParserTest.php +++ b/tests/ParserTest.php @@ -193,7 +193,7 @@ public function unicodeParsing(): void continue; } $contentRules = $ruleSet->getRules('content'); - $firstContentRuleAsString = $contentRules[0]->getValue()->__toString(); + $firstContentRuleAsString = $contentRules[0]->getValue()->render(OutputFormat::create()); if ($selector === '.test-1') { self::assertSame('" "', $firstContentRuleAsString); }