Skip to content

Psr\Log\AbstractLogger Fatal Error #1673

@lmjhs

Description

@lmjhs

Describe your environment
PHP 8.3.19
Composer 2.8.8

Steps to reproduce
When upgrading to the latest version of the SDK (1.5.0 - 1.6.0) a PHP fatal error is being generated when the SDK is autoloaded.

What is the expected behavior?
No errors

What is the actual behavior?
PHP Fatal error: Declaration of Psr\Log\AbstractLogger::emergency(Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::emergency($message, array $context = []) in /srv/vendor/psr/log/src/LoggerTrait.php on line 18

Additional context
The issue appears to originate from line 190 in SdkAutoloader.php

private static function loadConfigPropertiesFromEnv(): ConfigProperties
{
    ...
    $context = new \OpenTelemetry\API\Configuration\Context();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleThis issue didn't have recent activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions