Skip to content

Commit

Permalink
fix undefined index warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ilnytskyi authored Jan 31, 2024
1 parent d4088ed commit 03234f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtc
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ EOF;
}

if ($recordType === static::RECORD_ENTRY) {
$numberOfArguments = (int)$event[$this->functionIdx['number_of_arguments']];
$numberOfArguments = (int)($event[$this->functionIdx['number_of_arguments']] ?? null);
$events[$recordIndex] = [
'pid' => 1,
'tid' => 1,
Expand Down

0 comments on commit 03234f1

Please sign in to comment.