Skip to content

Commit

Permalink
Skip abstract entity type classes from being exposed with their short…
Browse files Browse the repository at this point in the history
… class name (#5856)
  • Loading branch information
ceesgeene authored Feb 23, 2024
1 parent 4612622 commit 13a65b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/core/CliCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public function makeEntitiesAvailableWithShortClassNames(): void
$parts = explode('\\', $class);
$end = end($parts);
// https://github.com/drush-ops/drush/pull/5729 and https://github.com/drush-ops/drush/issues/5730.
if ($reflectionClass->isFinal() || class_exists($end)) {
if ($reflectionClass->isAbstract() || $reflectionClass->isFinal() || class_exists($end)) {
continue;
}
// Make it possible to easily load revisions.
Expand Down

0 comments on commit 13a65b6

Please sign in to comment.