Skip to content

Commit

Permalink
Fix: Skipping Abstract Classes, Interfaces, and Traits
Browse files Browse the repository at this point in the history
We do not want to wire base classes only the concrete classes
  • Loading branch information
spenserhale committed Apr 16, 2024
1 parent 33a3a50 commit fe70e5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AttributeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public static function processClassesToList(array $classes): array
foreach ($classes as $class) {
try {
$reflector = new ReflectionClass($class);
if ($reflector->isAbstract() || $reflector->isInterface() || $reflector->isTrait()) {
continue;
}

self::processClassAttributes($hooks, $reflector);

foreach ($reflector->getMethods() as $method) {
Expand Down

0 comments on commit fe70e5a

Please sign in to comment.