diff --git a/FormBuilder.php b/FormBuilder.php index 82ec06b..c8b3743 100755 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -614,7 +614,9 @@ class FormBuilder { */ protected function getMethod($method) { - return strtoupper($method) != 'GET' ? 'POST' : $method; + $method = strtoupper($method); + + return $method != 'GET' ? 'POST' : $method; } /**