From 378b0f5e4b6450dd83b70e83228ea0db17eaed10 Mon Sep 17 00:00:00 2001 From: Craig Williams Date: Mon, 17 Jun 2024 16:23:21 +0100 Subject: [PATCH] Prevent abstract jobs from being included in the list --- src/Jobs/JobInspector.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Jobs/JobInspector.php b/src/Jobs/JobInspector.php index 51c1fe9..c5fb7f0 100644 --- a/src/Jobs/JobInspector.php +++ b/src/Jobs/JobInspector.php @@ -103,6 +103,11 @@ class JobInspector return null; } + $reflect = new \ReflectionClass($classPath); + if ($reflect->isAbstract()) { + return null; + } + // Build the class name and namespace return [ 'sprinkle' => $sprinkleName,