Give a bit better error messages in tests

This commit is contained in:
Sobuno
2025-01-02 22:40:50 +01:00
parent ebd30f4861
commit 2ae3929dd6
2 changed files with 42 additions and 40 deletions

View File

@@ -33,6 +33,6 @@ class Subquery extends Node
public function __toString(): string
{
return ($this->prohibited ? '-' : '') . '(' . implode(' ', array_map(fn($node) => (string)$node, $this->nodes)) . ')';
return ($this->prohibited ? '-' : '') . '[' . implode(' ', array_map(fn($node) => (string)$node, $this->nodes)) . ']';
}
}