From 26e5bbf8f64522336e1858d65442194d2d83360f 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 18749ad5..59d3c839 100644 --- a/src/Jobs/RunBuildTaskJob.php +++ b/src/Jobs/RunBuildTaskJob.php @@ -72,7 +72,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'); }