Skip to content

Commit

Permalink
[BUGFIX] Fix BuildTask Class check code when Queuing a BuildTask
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunal Hari committed Apr 12, 2021
1 parent a9763da commit 6d54b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jobs/RunBuildTaskJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit 6d54b8c

Please sign in to comment.