Skip to content

Commit 7966308

Browse files
authored
Fix model:prune error with non-class php files (#48708)
1 parent 5e444ac commit 7966308

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Console/PruneCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ protected function models()
138138
return $models->reject(function ($model) use ($except) {
139139
return in_array($model, $except);
140140
});
141-
})->filter(function ($model) {
142-
return $this->isPrunable($model);
143141
})->filter(function ($model) {
144142
return class_exists($model);
143+
})->filter(function ($model) {
144+
return $this->isPrunable($model);
145145
})->values();
146146
}
147147

0 commit comments

Comments
 (0)