Skip to content

Since updating to version 4.13.0, I’m encountering the following error during CI tests: #1861

@cleptric

Description

@cleptric

Since updating to version 4.13.0, I’m encountering the following error during CI tests:

  Undefined array key 0
  at vendor/sentry/sentry/src/FrameBuilder.php:226
    222▕             if ($reflectionParameter->isVariadic()) {
    223▕                 // For variadic parameters, collect all remaining arguments into an array
    224▕                 $variadicArgs = [];
    225▕                 for ($i = $parameterPosition; $i < \count($backtraceFrameArgs); ++$i) {
  ➜ 226▕                     $variadicArgs[] = $backtraceFrameArgs[$i];
    227▕                 }
    228▕                 $argumentValues[$reflectionParameter->getName()] = $variadicArgs;
    229▕                 // Variadic parameter is always the last one, so we can break
    230▕                 break;
      +15 vendor frames 

Interestingly, I’m unable to reproduce this issue locally.

Originally posted by @poldixd in #1849 (comment)

Metadata

Metadata

Assignees

Labels

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions