Skip to content

Commit 8ccf13c

Browse files
authored
Merge pull request #331 from stein-j/master
StatusCommand checks trait recursively
2 parents ea96227 + 0a25703 commit 8ccf13c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/StatusCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function getSearchableModels()
141141
private function isSearchableModel($trait)
142142
{
143143
return function ($className) use ($trait) {
144-
$traits = class_uses($className);
144+
$traits = class_uses_recursive($className);
145145

146146
return isset($traits[$trait]);
147147
};

0 commit comments

Comments
 (0)