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

v4: TypeError: RaygunHandler::writeError(): Argument #1 ($record) must be of type Monolog\LogRecord, array given #71

Closed
chrispenny opened this issue Apr 27, 2023 · 0 comments · Fixed by #72

Comments

@chrispenny
Copy link
Collaborator

if ($exception instanceof Throwable) {
    $this->writeException(
        $record,
        $formatted['tags'],
        $formatted['custom_data'],
        $formatted['timestamp']
    );
} elseif (isset($context['file']) && isset($context['line'])) {
    $this->writeError(
        $formatted,
        $formatted['tags'],
        $formatted['custom_data'],
        $formatted['timestamp']
    );
}

The section calling writeError() with $formatted (I think) needs to be updated to pass $record instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant