Skip to content

Commit

Permalink
[BUGFIX] Parse build task class correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunal Hari committed Jul 14, 2021
1 parent cff6875 commit 26e5bbf
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 @@ -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');
}

Expand Down

0 comments on commit 26e5bbf

Please sign in to comment.