Skip to content

Commit 3099246

Browse files
Merge pull request #23 from juventus18/master
Fixes #22 - This will allow useSoftDeletes to detect the trait up the inheritance tree, fixing the desired behavior.
2 parents 0cbed67 + 8b6dbc4 commit 3099246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BlameableTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function silentUpdate() :int
125125
*/
126126
public function useSoftDeletes() :bool
127127
{
128-
return in_array(SoftDeletes::class, class_uses($this), true);
128+
return in_array(SoftDeletes::class, class_uses_recursive($this), true);
129129
}
130130

131131
/**

0 commit comments

Comments
 (0)