Skip to content

Commit eed5344

Browse files
committed
Handle possible null case
1 parent 69fccd5 commit eed5344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Transfer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2951,7 +2951,7 @@ private function transferTaskCategory(string $itemtype, int $ID, int $newID): vo
29512951
}
29522952

29532953
$taskclass = $itemtype::getTaskClass();
2954-
if (!is_a($taskclass, CommonITILTask::class, true)) {
2954+
if (!is_a($taskclass ?? '', CommonITILTask::class, true)) {
29552955
return;
29562956
}
29572957

0 commit comments

Comments
 (0)