Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RollbarLogger::log() incompatible with Psr\Log\LoggerInterface::log() v1.0 #617

Closed
lukastaferner opened this issue Apr 12, 2023 · 1 comment · Fixed by #623
Closed

RollbarLogger::log() incompatible with Psr\Log\LoggerInterface::log() v1.0 #617

lukastaferner opened this issue Apr 12, 2023 · 1 comment · Fixed by #623
Assignees
Labels
Rank: 1 - Critical Tackle above all other actionable requests. Type: Bug Fix a component so that its behavior aligns with its documentation.

Comments

@lukastaferner
Copy link

Dear Rollbar-Team,
Installing the package with psr/log:^1 produces the following error:
Fatal error: Declaration of Rollbar\RollbarLogger::log($level, Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::log($level, $message, array $context = []) in /srv/apache2/keepersport/vendor/rollbar/rollbar/src/RollbarLogger.php on line 194

Thank you!

@danielmorell danielmorell self-assigned this Apr 13, 2023
@danielmorell danielmorell added Rank: 1 - Critical Tackle above all other actionable requests. Type: Bug Fix a component so that its behavior aligns with its documentation. labels Apr 13, 2023
@Chris53897
Copy link
Contributor

(I am not from the rollbar team)
I am not sure if it is possible to support psr/log 1-3. I did two PR and i suggest to remove support for version 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rank: 1 - Critical Tackle above all other actionable requests. Type: Bug Fix a component so that its behavior aligns with its documentation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants