Skip to content

Commit

Permalink
Corrected order of Str::startsWith call in Classify.
Browse files Browse the repository at this point in the history
  • Loading branch information
jefhar committed May 28, 2018
1 parent 8fad81f commit 2af30a8
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 2af30a8

Please sign in to comment.