Skip to content

Commit

Permalink
Merge pull request #88 from emnsen/patch-2
Browse files Browse the repository at this point in the history
strtolower bug.
  • Loading branch information
kaidesu committed May 23, 2016
2 parents 7a345b3 + 71f78ff commit 307475d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use BadMethodCallException;
use Collective\Html\HtmlBuilder;
use Illuminate\Routing\UrlGenerator;
use Illuminate\Support\Str;

class Builder
{
Expand Down Expand Up @@ -556,7 +557,7 @@ public function __call($method, $args)
preg_match('/^[W|w]here([a-zA-Z0-9_]+)$/', $method, $matches);

if ($matches) {
$attribute = strtolower($matches[1]);
$attribute = Str::lower($matches[1]);
} else {
throw new BadMethodCallException('Call to undefined method '.$method);
}
Expand Down

0 comments on commit 307475d

Please sign in to comment.