Prevent abstract jobs from being included in the list

This commit is contained in:
2024-06-17 16:23:21 +01:00
parent e498990393
commit 378b0f5e4b

View File

@@ -103,6 +103,11 @@ class JobInspector
return null; return null;
} }
$reflect = new \ReflectionClass($classPath);
if ($reflect->isAbstract()) {
return null;
}
// Build the class name and namespace // Build the class name and namespace
return [ return [
'sprinkle' => $sprinkleName, 'sprinkle' => $sprinkleName,