From 293e044cc9accb86a87a855e8a3511b07fb23d82 Mon Sep 17 00:00:00 2001 From: Kunal Hari Date: Tue, 13 Apr 2021 14:12:54 +1200 Subject: [PATCH] [BUGFIX] Parse build task class correctly --- src/Jobs/RunBuildTaskJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jobs/RunBuildTaskJob.php b/src/Jobs/RunBuildTaskJob.php index 435fc8ed..6502efab 100644 --- a/src/Jobs/RunBuildTaskJob.php +++ b/src/Jobs/RunBuildTaskJob.php @@ -65,7 +65,7 @@ public function getTitle() public function process() { - if (!is_subclass_of($this->TaskClass, BuildTask::class)) { + if (!is_a(trim($this->TaskClass), BuildTask::class, true)) { throw new \LogicException($this->TaskClass . ' is not a build task'); }