diff --git a/src/FormBuilder.php b/src/FormBuilder.php
index bbf8d6f..238428a 100755
--- a/src/FormBuilder.php
+++ b/src/FormBuilder.php
@@ -494,10 +494,10 @@ class FormBuilder {
// all together into one single HTML element that can be put on the form.
$html = [];
- if(isset($options['optional']))
+ if(isset($options['placeholder']))
{
- $html[] = $this->placeholderOption($options['optional'], $selected);
- unset($options['optional']);
+ $html[] = $this->placeholderOption($options['placeholder'], $selected);
+ unset($options['placeholder']);
}
foreach($list as $value => $display)
diff --git a/tests/FormBuilderTest.php b/tests/FormBuilderTest.php
index 1d826c0..a727bef 100644
--- a/tests/FormBuilderTest.php
+++ b/tests/FormBuilderTest.php
@@ -320,7 +320,7 @@ class FormBuilderTest extends PHPUnit_Framework_TestCase {
'size',
['L' => 'Large', 'S' => 'Small'],
null,
- ['optional' => 'Select One...']
+ ['placeholder' => 'Select One...']
);
$this->assertEquals($select, '');
@@ -328,7 +328,7 @@ class FormBuilderTest extends PHPUnit_Framework_TestCase {
'size',
['L' => 'Large', 'S' => 'Small'],
'L',
- ['optional' => 'Select One...']
+ ['placeholder' => 'Select One...']
);
$this->assertEquals($select, '');
}