Skip to content

Fatal error on NoOperationMonologHandler::write() #499

@KaspervdHeijden

Description

@KaspervdHeijden

Problem synopsis

Got the following exception:

PHP Fatal error:  Declaration of JiraRestApi\NoOperationMonologHandler::write(array $record): void must be compatible with Monolog\Handler\AbstractProcessingHandler::write(Monolog\LogRecord $record): void in vendor/lesstif/php-jira-rest-client/src/NoOperationMonologHandler.php on line 16

It seems the parent abstract class has the argument typehinted as LogRecord, but the NoOperationMonologHandler::write() method uses array instead.

How to reproduce?

Switch off logging (E.g. by passing 'jiraLogEnabled' => false)

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