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 @@ - + + diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__17.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__17.html index 89e6ab84..5c7bd23a 100644 --- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__17.html +++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__17.html @@ -1,8 +1,8 @@ - + + diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__18.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__18.html index 37b8332f..89e6ab84 100644 --- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__18.html +++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__18.html @@ -1,8 +1,11 @@ - + + + + + + diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__19.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__19.html index ec3c00cf..37b8332f 100644 --- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__19.html +++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__19.html @@ -1,4 +1,8 @@ - + diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__20.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__20.html index 75248dc7..ec3c00cf 100644 --- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__20.html +++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__20.html @@ -1,4 +1,4 @@ - + diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__21.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__21.html index f7069230..75248dc7 100644 --- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__21.html +++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__21.html @@ -1,4 +1,4 @@ - + diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__22.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__22.html index 1074dd4c..f7069230 100644 --- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__22.html +++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__22.html @@ -1,4 +1,4 @@ - + diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__23.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__23.html index c0d27a30..1074dd4c 100644 --- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__23.html +++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__23.html @@ -1,4 +1,4 @@ - + diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__24.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__24.html index adcfd0b6..c0d27a30 100644 --- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__24.html +++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__24.html @@ -1,4 +1,4 @@ - + diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__25.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__25.html new file mode 100644 index 00000000..adcfd0b6 --- /dev/null +++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__25.html @@ -0,0 +1,4 @@ + + + + diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__8.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__8.html index c096fb1d..1b30eee9 100644 --- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__8.html +++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__8.html @@ -1,9 +1,4 @@ - + diff --git a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__9.html b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__9.html index 0d6f05c3..c096fb1d 100644 --- a/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__9.html +++ b/tests/AnimeClient/__snapshots__/FormGeneratorTest__testGeneration__9.html @@ -1,4 +1,9 @@ - +