Skip to content

Commit

Permalink
Merge pull request #99 from jefhar/master
Browse files Browse the repository at this point in the history
Haystack and needles are backwards in Classify
  • Loading branch information
CristianLlanos authored May 28, 2018
2 parents 7d037f2 + 2af30a8 commit 3d9ff50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Classify.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function method($name, $body, $options = [])

public function mixin($class)
{
if (Str::startsWith('\\', $class)) {
if (Str::startsWith($class, '\\')) {
$class = Str::replaceFirst('\\', '', $class);
}

Expand Down

0 comments on commit 3d9ff50

Please sign in to comment.