Skip to content

Commit 7566715

Browse files
authored
[TASK] Improve exception message for Value::getArrayRepresentation (#1456)
Having the leaf class identified eases debugging during development. Part of #1440.
1 parent b6e4d25 commit 7566715

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Value/Value.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ public static function parsePrimitiveValue(ParserState $parserState)
188188
*/
189189
public function getArrayRepresentation(): array
190190
{
191-
throw new \BadMethodCallException('`getArrayRepresentation` is not yet implemented for `' . self::class . '`');
191+
throw new \BadMethodCallException(
192+
'`getArrayRepresentation` is not yet implemented for `' . static::class . '`'
193+
);
192194
}
193195

194196
/**

0 commit comments

Comments
 (0)