Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Dies in php 8 #5

@jjrohrer

Description

@jjrohrer

When upgrading my server from 7.4 to PHP 8.0, I encountered this (slightly edited)
Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Papertrail_API::error_handler(), 4 passed and exactly 5 expected in /nas/content/live/ccc/WP_Papertrail_API.php:194

I replaced, in WP_Papertrails_API.php,
this
public static function error_handler( $id, $message, $file, $line, $context )
with
public static function error_handler( $id, $message, $file, $line ) {

Seems to work, but I'm not confident enough in this solution to post a Pull Request.
See also: //https://stackoverflow.com/questions/65201307/too-few-arguments-to-function-exception-error-handler-php8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions