lesstif / php-jira-rest-client

PHP classes interact Jira with the REST API.
Other
510 stars 263 forks source link

PHP Fatal error: Declaration ... must be compatible with AbstractProcessingHandler #386

Closed clxmstaab closed 3 years ago

clxmstaab commented 3 years ago

since I have disabled the log file recently

        return new ArrayConfiguration(
            [
                'jiraLogEnabled' => false,
                'jiraHost' => self::HOST,
                'jiraUser' => JiraCredentials::API_USER,
                'jiraPassword' => JiraCredentials::API_PASSWORD,
            ]
        );

I am getting signature fatal errors with 1.45.0

PHP Fatal error:  Declaration of JiraRestApi\NoOperationMonologHandler::write(array $record) must be compatible with Monolog\Handler\AbstractProcessingHandler::write(array $record): void in /deploy/logitel/fast-track/clxlogitel/test/vendor/lesstif/php-jira-rest-client/src/NoOperationMonologHandler.php on line 16
clxmstaab commented 3 years ago

it seems the cause of this problem was fixed with 2.0, but wasn't in the 1.x version

lesstif commented 3 years ago

hi @clxmstaab

the 1.x version is deprecated, could you update to 2.x version please?