Skip to content

Fixed a bit of warnings and deprecations #1396

Fixed a bit of warnings and deprecations

Fixed a bit of warnings and deprecations #1396

Triggered via pull request November 5, 2024 16:28
Status Failure
Total duration 3m 55s
Artifacts

php.yml

on: pull_request
Matrix: php
Fit to window
Zoom out
Zoom in

Annotations

31 errors
MethodSignatureMismatch: src/SwooleContextStorage.php#L29
src/SwooleContextStorage.php:29:37: MethodSignatureMismatch: Argument 1 of OpenTelemetry\Contrib\Context\Swoole\SwooleContextStorage::fork has wrong type 'int|string', expecting '' as defined by OpenTelemetry\Context\ExecutionContextAwareInterface::fork (see https://psalm.dev/042)
MethodSignatureMismatch: src/SwooleContextStorage.php#L36
src/SwooleContextStorage.php:36:39: MethodSignatureMismatch: Argument 1 of OpenTelemetry\Contrib\Context\Swoole\SwooleContextStorage::switch has wrong type 'int|string', expecting '' as defined by OpenTelemetry\Context\ExecutionContextAwareInterface::switch (see https://psalm.dev/042)
MethodSignatureMismatch: src/SwooleContextStorage.php#L43
src/SwooleContextStorage.php:43:40: MethodSignatureMismatch: Argument 1 of OpenTelemetry\Contrib\Context\Swoole\SwooleContextStorage::destroy has wrong type 'int|string', expecting '' as defined by OpenTelemetry\Context\ExecutionContextAwareInterface::destroy (see https://psalm.dev/042)
php (8.0, Context/Swoole)
Process completed with exit code 2.
php (7.4, ResourceDetectors/Azure)
Process completed with exit code 1.
php (7.4, Context/Swoole)
Process completed with exit code 4.
php (8.0, Logs/Monolog)
Process completed with exit code 1.
php (8.0, Instrumentation/Psr3)
Process completed with exit code 1.
php (8.0, Instrumentation/CakePHP)
Process completed with exit code 2.
php (8.0, ResourceDetectors/Azure)
Process completed with exit code 1.
php (7.4, Logs/Monolog)
Process completed with exit code 1.
UndefinedConstant: src/ExtAmqpInstrumentation.php#L60
src/ExtAmqpInstrumentation.php:60:36: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_DESTINATION is not defined (see https://psalm.dev/020)
UndefinedConstant: src/ExtAmqpInstrumentation.php#L64
src/ExtAmqpInstrumentation.php:64:36: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_DESTINATION_KIND is not defined (see https://psalm.dev/020)
UndefinedConstant: src/ExtAmqpInstrumentation.php#L66
src/ExtAmqpInstrumentation.php:66:36: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_RABBITMQ_ROUTING_KEY is not defined (see https://psalm.dev/020)
UndefinedConstant: src/ExtAmqpInstrumentation.php#L173
src/ExtAmqpInstrumentation.php:173:36: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_DESTINATION_KIND is not defined (see https://psalm.dev/020)
UndefinedConstant: src/ExtAmqpInstrumentation.php#L175
src/ExtAmqpInstrumentation.php:175:36: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_RABBITMQ_ROUTING_KEY is not defined (see https://psalm.dev/020)
UndefinedConstant: tests/Integration/ExtAmqpInstrumentationTest.php#L62
tests/Integration/ExtAmqpInstrumentationTest.php:62:70: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_DESTINATION_KIND is not defined (see https://psalm.dev/020)
UndefinedConstant: tests/Integration/ExtAmqpInstrumentationTest.php#L96
tests/Integration/ExtAmqpInstrumentationTest.php:96:77: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_DESTINATION_KIND is not defined (see https://psalm.dev/020)
php (8.2, Instrumentation/ExtAmqp)
Process completed with exit code 2.
UndefinedConstant: src/ExtAmqpInstrumentation.php#L60
src/ExtAmqpInstrumentation.php:60:36: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_DESTINATION is not defined (see https://psalm.dev/020)
UndefinedConstant: src/ExtAmqpInstrumentation.php#L64
src/ExtAmqpInstrumentation.php:64:36: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_DESTINATION_KIND is not defined (see https://psalm.dev/020)
UndefinedConstant: src/ExtAmqpInstrumentation.php#L66
src/ExtAmqpInstrumentation.php:66:36: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_RABBITMQ_ROUTING_KEY is not defined (see https://psalm.dev/020)
UndefinedConstant: src/ExtAmqpInstrumentation.php#L173
src/ExtAmqpInstrumentation.php:173:36: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_DESTINATION_KIND is not defined (see https://psalm.dev/020)
UndefinedConstant: src/ExtAmqpInstrumentation.php#L175
src/ExtAmqpInstrumentation.php:175:36: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_RABBITMQ_ROUTING_KEY is not defined (see https://psalm.dev/020)
UndefinedConstant: tests/Integration/ExtAmqpInstrumentationTest.php#L62
tests/Integration/ExtAmqpInstrumentationTest.php:62:70: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_DESTINATION_KIND is not defined (see https://psalm.dev/020)
UndefinedConstant: tests/Integration/ExtAmqpInstrumentationTest.php#L96
tests/Integration/ExtAmqpInstrumentationTest.php:96:77: UndefinedConstant: Constant OpenTelemetry\SemConv\TraceAttributes::MESSAGING_DESTINATION_KIND is not defined (see https://psalm.dev/020)
php (8.3, Instrumentation/ExtAmqp)
Process completed with exit code 2.
php (8.2, Symfony)
Process completed with exit code 1.
php (8.1, Symfony)
Process completed with exit code 1.
php (8.0, Instrumentation/Laravel)
Process completed with exit code 1.
php (8.3, Symfony)
Process completed with exit code 1.