Skip to content

Commit

Permalink
Change == to === for string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-urdin committed Jul 29, 2016
1 parent 4217e80 commit ef14b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/FormHelper.php
Expand Up @@ -1024,7 +1024,7 @@ public function input($fieldName, array $options = [])
$options = $this->_parseOptions($fieldName, $options);
$options += ['id' => $this->_domId($fieldName)];

if (strtolower($options['type']) == 'input') {
if (strtolower($options['type']) === 'input') {
throw new Exception(sprintf('Input is an invalid type option for input field %s', $fieldName));
}

Expand Down

0 comments on commit ef14b13

Please sign in to comment.