Skip to content

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

@marcodefelice

Description

@marcodefelice

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions