fluent / fluent/fluent-logger-php

WARNING: Trying to access array offset on value of type null

Open
#67 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
218
Forks
58
PR merge metrics
No merged PRs in 30d

Description

When submit a new request to a offline fluent server, got an exception but that exception never show an error message becouse on file
vendor/fluent/logger/src/FluentLogger.php:328 the function $errors = error_get_last(); doesn't work and the array is NULL

i think is better to fix and show the right error message

just now i've fixed with
if(empty($errors)) {
$errors['message'] = "Unable to connect to the server";
}

if ok i will commit the fix

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.