File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Illuminate/Database/Eloquent Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public function pruneAll(int $chunkSize = 1000)
1818 $ total = 0 ;
1919
2020 $ this ->prunable ()
21- ->when (in_array (SoftDeletes::class, class_uses_recursive (get_class ( $ this ) )), function ($ query ) {
21+ ->when (in_array (SoftDeletes::class, class_uses_recursive (static ::class )), function ($ query ) {
2222 $ query ->withTrashed ();
2323 })->chunkById ($ chunkSize , function ($ models ) use (&$ total ) {
2424 $ models ->each ->prune ();
@@ -50,7 +50,7 @@ public function prune()
5050 {
5151 $ this ->pruning ();
5252
53- return in_array (SoftDeletes::class, class_uses_recursive (get_class ( $ this ) ))
53+ return in_array (SoftDeletes::class, class_uses_recursive (static ::class ))
5454 ? $ this ->forceDelete ()
5555 : $ this ->delete ();
5656 }
You can’t perform that action at this time.
0 commit comments