Auto instrumentation for mysqli #1403
Annotations
10 errors and 1 warning
Run Psalm:
src/MySqliInstrumentation.php#L343
src/MySqliInstrumentation.php:343:9: PossiblyUndefinedVariable: Possibly undefined variable $attributes, first seen on line 343 (see https://psalm.dev/018)
|
Run Psalm:
src/MySqliInstrumentation.php#L385
src/MySqliInstrumentation.php:385:9: InvalidArrayAssignment: Cannot access array value on non-array variable $attributes['db.statement'] of type iterable<mixed, mixed> (see https://psalm.dev/006)
|
Run Psalm:
src/MySqliInstrumentation.php#L386
src/MySqliInstrumentation.php:386:9: PossiblyInvalidArrayAssignment: Cannot access array value on non-array variable $attributes['db.operation.name'] of type iterable<mixed, mixed> (see https://psalm.dev/118)
|
Run Psalm:
src/MySqliInstrumentation.php#L390
src/MySqliInstrumentation.php:390:13: PossiblyInvalidArrayAssignment: Cannot access array value on non-array variable $attributes['db.response.status_code'] of type iterable<mixed, mixed> (see https://psalm.dev/118)
|
Run Psalm:
src/MySqliInstrumentation.php#L394
src/MySqliInstrumentation.php:394:23: PossiblyInvalidArgument: Argument 1 of OpenTelemetry\Contrib\Instrumentation\MySqli\MySqliInstrumentation::endSpan expects array<array-key, mixed>, but possibly different type array{'db.operation.name': null|string, 'db.response.status_code'?: int, 'db.statement': array<array-key, mixed|string>|false|string}|iterable<mixed, mixed> provided (see https://psalm.dev/092)
|
Run Psalm:
src/MySqliInstrumentation.php#L408
src/MySqliInstrumentation.php:408:13: InvalidArrayAssignment: Cannot access array value on non-array variable $attributes['db.statement'] of type iterable<mixed, mixed> (see https://psalm.dev/006)
|
Run Psalm:
src/MySqliInstrumentation.php#L409
src/MySqliInstrumentation.php:409:13: PossiblyInvalidArrayAssignment: Cannot access array value on non-array variable $attributes['db.operation.name'] of type iterable<mixed, mixed> (see https://psalm.dev/118)
|
Run Psalm:
src/MySqliInstrumentation.php#L414
src/MySqliInstrumentation.php:414:13: PossiblyInvalidArrayAssignment: Cannot access array value on non-array variable $attributes['db.response.status_code'] of type iterable<mixed, mixed> (see https://psalm.dev/118)
|
Run Psalm:
src/MySqliInstrumentation.php#L420
src/MySqliInstrumentation.php:420:23: PossiblyInvalidArgument: Argument 1 of OpenTelemetry\Contrib\Instrumentation\MySqli\MySqliInstrumentation::endSpan expects array<array-key, mixed>, but possibly different type array{'db.operation.name': null|string, 'db.response.status_code'?: int, 'db.statement': false|string}|iterable<mixed, mixed> provided (see https://psalm.dev/092)
|
Run Psalm:
src/MySqliInstrumentation.php#L454
src/MySqliInstrumentation.php:454:13: InvalidArrayAssignment: Cannot access array value on non-array variable $attributes['db.statement'] of type iterable<mixed, mixed> (see https://psalm.dev/006)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading