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 Apr 13, 2021
1 parent ffcee05 commit 293e044
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 293e044

Please sign in to comment.