Skip to content

Commit 87f1324

Browse files
committed
fixing field callback exception message building
1 parent 755df84 commit 87f1324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hydratable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private function hydrateComplex(string $field, $value, array $def): void
197197
throw new \RuntimeException(
198198
\sprintf(
199199
'Error calling hydration callback "%s" for field "%s" on class "%s"',
200-
$def[Hydration::FIELD_CALLBACK],
200+
\var_export($def[Hydration::FIELD_CALLBACK], true),
201201
$field,
202202
\get_class($this)
203203
)

0 commit comments

Comments
 (0)