Fix string formatting in __toString method

This commit is contained in:
2025-11-22 17:16:45 +01:00
committed by GitHub
parent eeb85df689
commit cb2b55b936

View File

@@ -46,7 +46,7 @@ class Location extends Context
public function __toString() : string
{
return sprintf(
"{$this->name} %s %s {\n\t%s\n}\n",
"{$this->name} %s %s {\n\t%s\n}",
$this->match,
$this->location,
implode("\n\t", (array)$this->childNodes->getIterator())