diff --git a/src/AnimeClient/FormGenerator.php b/src/AnimeClient/FormGenerator.php
index e2f0109b..3e55dfe6 100644
--- a/src/AnimeClient/FormGenerator.php
+++ b/src/AnimeClient/FormGenerator.php
@@ -59,7 +59,7 @@ final class FormGenerator {
if ($display === FALSE)
{
- return $this->helper->input([
+ return (string)$this->helper->input([
'type' => 'hidden',
'name' => $name,
'value' => $value,
diff --git a/tests/AnimeClient/FormGeneratorTest.php b/tests/AnimeClient/FormGeneratorTest.php
index 169fee57..816489a0 100644
--- a/tests/AnimeClient/FormGeneratorTest.php
+++ b/tests/AnimeClient/FormGeneratorTest.php
@@ -68,6 +68,13 @@ const SETTINGS_MAP = [
'description' => 'Token to refresh the access token before it expires',
'readonly' => TRUE,
],
+ 'special_hidden_flag' => [
+ 'type' => 'string',
+ 'title' => '',
+ 'display' => FALSE,
+ 'description' => '',
+ 'value' => 'foo_bar',
+ ]
],
'cache' => [
diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__10.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__10.html
index 9d0d056e..0d6f05c3 100644
--- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__10.html
+++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__10.html
@@ -1,4 +1,4 @@
-
+
diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__11.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__11.html
index a7fe93fe..9d0d056e 100644
--- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__11.html
+++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__11.html
@@ -1,4 +1,4 @@
-
+
diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__12.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__12.html
index ce059c77..a7fe93fe 100644
--- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__12.html
+++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__12.html
@@ -1,8 +1,4 @@
-
+
diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__13.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__13.html
index ac95bc17..ce059c77 100644
--- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__13.html
+++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__13.html
@@ -1,5 +1,8 @@
-
-
+
diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__14.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__14.html
index 0127f5f2..ac95bc17 100644
--- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__14.html
+++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__14.html
@@ -1,5 +1,5 @@
-
-
+
+
diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__15.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__15.html
index 40801d06..0127f5f2 100644
--- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__15.html
+++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__15.html
@@ -1,7 +1,5 @@
-
+
+
diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__16.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__16.html
index 5c7bd23a..40801d06 100644
--- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__16.html
+++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__16.html
@@ -1,11 +1,7 @@
-