From f103648f8ca180694ee564818db4ce37d5698666 Mon Sep 17 00:00:00 2001 From: Thomas Portelange Date: Wed, 26 Sep 2018 11:35:40 +0200 Subject: [PATCH] value can be something else than a string if the value is not a string (an array for instance), sprintf will fail --- src/Forms/FormField.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Forms/FormField.php b/src/Forms/FormField.php index 502163b0b..dce2688f8 100644 --- a/src/Forms/FormField.php +++ b/src/Forms/FormField.php @@ -1326,13 +1326,14 @@ class FormField extends RequestHandler */ public function debug() { + $strValue = is_string($this->value) ? $this->value : print_r($this->value, true); return sprintf( '%s (%s: %s : %s) = %s', static::class, $this->name, $this->title, $this->message, - $this->value + $strValue ); }